00cea41b65
Fixes #15024
32 lines
795 B
TypeScript
32 lines
795 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @module: esnext
|
|
|
|
// @Filename: /a.ts
|
|
// Not included:
|
|
////export function abcde() {}
|
|
////export function dbf() {}
|
|
// Included:
|
|
////export function bdf() {}
|
|
////export function abcdef() {}
|
|
////export function BDF() {}
|
|
|
|
// @Filename: /b.ts
|
|
////bdf/**/
|
|
|
|
verify.completions({
|
|
marker: "",
|
|
includes: ["bdf", "abcdef", "BDF"].map(name =>
|
|
({
|
|
name,
|
|
source: "/a",
|
|
text: `function ${name}(): void`,
|
|
hasAction: true,
|
|
kind: "function",
|
|
kindModifiers: "export",
|
|
sourceDisplay: "./a",
|
|
sortText: completion.SortText.AutoImportSuggestions
|
|
})),
|
|
excludes: ["abcde", "dbf"],
|
|
preferences: { includeCompletionsForModuleExports: true },
|
|
})
|