diff --git a/src/services/utilities.ts b/src/services/utilities.ts index fbccd72c2aa..fa795f359ff 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -1196,6 +1196,7 @@ namespace ts { SyntaxKind.VoidKeyword, SyntaxKind.UndefinedKeyword, SyntaxKind.UniqueKeyword, + SyntaxKind.UnknownKeyword, ]; export function isTypeKeyword(kind: SyntaxKind): boolean { diff --git a/tests/cases/fourslash/completionsTypeKeywords.ts b/tests/cases/fourslash/completionsTypeKeywords.ts index 198d6dddab4..5148f2ae7c3 100644 --- a/tests/cases/fourslash/completionsTypeKeywords.ts +++ b/tests/cases/fourslash/completionsTypeKeywords.ts @@ -1,7 +1,10 @@ /// +// @noLib: true + ////type T = /**/ -goTo.marker(); -verify.completionListContains("undefined", "undefined", undefined, "keyword"); -verify.not.completionListContains("await"); +verify.completions({ + marker: "", + exact: ["T", "null", "void", "any", "boolean", "keyof", "never", "number", "object", "string", "symbol", "undefined", "unique", "unknown"], +});