mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
parent
8bf45a4f93
commit
08b1cce595
@ -404,8 +404,8 @@ namespace FourSlashInterface {
|
||||
this.state.baselineSignatureHelp();
|
||||
}
|
||||
|
||||
public baselineCompletions() {
|
||||
this.state.baselineCompletions();
|
||||
public baselineCompletions(preferences?: ts.UserPreferences) {
|
||||
this.state.baselineCompletions(preferences);
|
||||
}
|
||||
|
||||
public baselineSmartSelection() {
|
||||
|
||||
59
tests/cases/fourslash/autoImportPathsAliasesAndBarrels.ts
Normal file
59
tests/cases/fourslash/autoImportPathsAliasesAndBarrels.ts
Normal file
@ -0,0 +1,59 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @Filename: /tsconfig.json
|
||||
//// {
|
||||
//// "compilerOptions": {
|
||||
//// "module": "commonjs",
|
||||
//// "paths": {
|
||||
//// "~/*": ["src/*"]
|
||||
//// }
|
||||
//// }
|
||||
////}
|
||||
|
||||
// @Filename: /src/dirA/index.ts
|
||||
//// export * from "./thing1A";
|
||||
//// export * from "./thing2A";
|
||||
|
||||
// @Filename: /src/dirA/thing1A.ts
|
||||
//// export class Thing1A {}
|
||||
//// Thing/**/
|
||||
|
||||
// @Filename: /src/dirA/thing2A.ts
|
||||
//// export class Thing2A {}
|
||||
|
||||
// @Filename: /src/dirB/index.ts
|
||||
//// export * from "./thing1B";
|
||||
//// export * from "./thing2B";
|
||||
|
||||
// @Filename: /src/dirB/thing1B.ts
|
||||
//// export class Thing1B {}
|
||||
|
||||
// @Filename: /src/dirB/thing2B.ts
|
||||
//// export class Thing2B {}
|
||||
|
||||
verify.completions({
|
||||
marker: "",
|
||||
includes: [{
|
||||
name: "Thing2A",
|
||||
source: "./thing2A",
|
||||
sourceDisplay: "./thing2A",
|
||||
hasAction: true,
|
||||
sortText: completion.SortText.AutoImportSuggestions,
|
||||
}, {
|
||||
name: "Thing1B",
|
||||
source: "~/dirB",
|
||||
sourceDisplay: "~/dirB",
|
||||
hasAction: true,
|
||||
sortText: completion.SortText.AutoImportSuggestions,
|
||||
}, {
|
||||
name: "Thing2B",
|
||||
source: "~/dirB",
|
||||
sourceDisplay: "~/dirB",
|
||||
hasAction: true,
|
||||
sortText: completion.SortText.AutoImportSuggestions,
|
||||
}],
|
||||
preferences: {
|
||||
includeCompletionsForModuleExports: true,
|
||||
allowIncompleteCompletions: true,
|
||||
},
|
||||
});
|
||||
@ -349,7 +349,7 @@ declare namespace FourSlashInterface {
|
||||
baselineSyntacticDiagnostics(): void;
|
||||
baselineSyntacticAndSemanticDiagnostics(): void;
|
||||
getEmitOutput(expectedOutputFiles: ReadonlyArray<string>): void;
|
||||
baselineCompletions(): void;
|
||||
baselineCompletions(preferences?: UserPreferences): void;
|
||||
baselineQuickInfo(): void;
|
||||
baselineSmartSelection(): void;
|
||||
baselineSignatureHelp(): void;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user