Restore 'type' and 'namespace' to All completion filter (#34491)

Vote in the comments below if you think I should restore other keywords!
Remember to like and subscribe!
This commit is contained in:
Nathan Shively-Sanders 2019-10-15 14:06:47 -07:00 committed by GitHub
parent 29f9493d87
commit d8d5ead83b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -4894,12 +4894,14 @@ namespace FourSlashInterface {
"declare", "declare",
"keyof", "keyof",
"module", "module",
"namespace",
"never", "never",
"readonly", "readonly",
"number", "number",
"object", "object",
"string", "string",
"symbol", "symbol",
"type",
"unique", "unique",
"unknown", "unknown",
"bigint", "bigint",
@ -5091,12 +5093,14 @@ namespace FourSlashInterface {
"declare", "declare",
"keyof", "keyof",
"module", "module",
"namespace",
"never", "never",
"readonly", "readonly",
"number", "number",
"object", "object",
"string", "string",
"symbol", "symbol",
"type",
"unique", "unique",
"unknown", "unknown",
"bigint", "bigint",

View file

@ -2406,6 +2406,8 @@ namespace ts.Completions {
return isFunctionLikeBodyKeyword(kind) return isFunctionLikeBodyKeyword(kind)
|| kind === SyntaxKind.DeclareKeyword || kind === SyntaxKind.DeclareKeyword
|| kind === SyntaxKind.ModuleKeyword || kind === SyntaxKind.ModuleKeyword
|| kind === SyntaxKind.TypeKeyword
|| kind === SyntaxKind.NamespaceKeyword
|| isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword; || isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword;
case KeywordCompletionFilters.FunctionLikeBodyKeywords: case KeywordCompletionFilters.FunctionLikeBodyKeywords:
return isFunctionLikeBodyKeyword(kind); return isFunctionLikeBodyKeyword(kind);