2018-06-01 18:46:56 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @module: esnext
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////declare module "m" {
|
|
|
|
//// export default class M {}
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////declare module "m" {
|
|
|
|
//// export default interface M {}
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: /c.ts
|
|
|
|
/////**/
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
2018-10-30 19:56:34 +01:00
|
|
|
includes: {
|
|
|
|
name: "M",
|
|
|
|
source: "m",
|
|
|
|
sourceDisplay: "m",
|
|
|
|
text: "class M",
|
|
|
|
kind: "class",
|
|
|
|
kindModifiers: "export,declare",
|
|
|
|
hasAction: true,
|
2019-05-16 23:46:10 +02:00
|
|
|
sortText: completion.SortText.AutoImportSuggestions
|
2018-10-30 19:56:34 +01:00
|
|
|
},
|
2018-10-29 18:03:25 +01:00
|
|
|
preferences: { includeCompletionsForModuleExports: true },
|
2018-06-01 18:46:56 +02:00
|
|
|
});
|
|
|
|
verify.applyCodeActionFromCompletion("", {
|
|
|
|
name: "M",
|
|
|
|
source: "m",
|
2018-08-01 02:28:35 +02:00
|
|
|
description: `Import default 'M' from module "m"`,
|
2018-06-01 18:46:56 +02:00
|
|
|
newFileContent: `import M from "m";
|
|
|
|
|
|
|
|
`,
|
|
|
|
});
|