mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-24 04:30:53 -06:00
fix(57348): Auto-complete on satisfies auto-imports satisfies (#57364)
This commit is contained in:
parent
8f531ff3ba
commit
65812bf3ec
@ -5900,5 +5900,7 @@ function isContextualKeywordInAutoImportableExpressionSpace(keyword: string) {
|
||||
keyword === "declare" ||
|
||||
keyword === "module" ||
|
||||
keyword === "namespace" ||
|
||||
keyword === "type";
|
||||
keyword === "type" ||
|
||||
keyword === "satisfies" ||
|
||||
keyword === "as";
|
||||
}
|
||||
|
||||
7185
tests/baselines/reference/completionsImport_asKeyword.baseline
Normal file
7185
tests/baselines/reference/completionsImport_asKeyword.baseline
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
12
tests/cases/fourslash/completionsImport_asKeyword.ts
Normal file
12
tests/cases/fourslash/completionsImport_asKeyword.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @Filename: /a.ts
|
||||
////export function as() {}
|
||||
|
||||
// @Filename: /b.ts
|
||||
////1 a/*1*/
|
||||
////a/*2*/
|
||||
|
||||
verify.baselineCompletions({
|
||||
includeCompletionsForModuleExports: true,
|
||||
});
|
||||
12
tests/cases/fourslash/completionsImport_satisfiesKeyword.ts
Normal file
12
tests/cases/fourslash/completionsImport_satisfiesKeyword.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @Filename: /a.ts
|
||||
////export function satisfies() {}
|
||||
|
||||
// @Filename: /b.ts
|
||||
////1 sat/*1*/
|
||||
////sat/*2*/
|
||||
|
||||
verify.baselineCompletions({
|
||||
includeCompletionsForModuleExports: true,
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user