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:
parent
29f9493d87
commit
d8d5ead83b
|
@ -4894,12 +4894,14 @@ namespace FourSlashInterface {
|
|||
"declare",
|
||||
"keyof",
|
||||
"module",
|
||||
"namespace",
|
||||
"never",
|
||||
"readonly",
|
||||
"number",
|
||||
"object",
|
||||
"string",
|
||||
"symbol",
|
||||
"type",
|
||||
"unique",
|
||||
"unknown",
|
||||
"bigint",
|
||||
|
@ -5091,12 +5093,14 @@ namespace FourSlashInterface {
|
|||
"declare",
|
||||
"keyof",
|
||||
"module",
|
||||
"namespace",
|
||||
"never",
|
||||
"readonly",
|
||||
"number",
|
||||
"object",
|
||||
"string",
|
||||
"symbol",
|
||||
"type",
|
||||
"unique",
|
||||
"unknown",
|
||||
"bigint",
|
||||
|
|
|
@ -2406,6 +2406,8 @@ namespace ts.Completions {
|
|||
return isFunctionLikeBodyKeyword(kind)
|
||||
|| kind === SyntaxKind.DeclareKeyword
|
||||
|| kind === SyntaxKind.ModuleKeyword
|
||||
|| kind === SyntaxKind.TypeKeyword
|
||||
|| kind === SyntaxKind.NamespaceKeyword
|
||||
|| isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword;
|
||||
case KeywordCompletionFilters.FunctionLikeBodyKeywords:
|
||||
return isFunctionLikeBodyKeyword(kind);
|
||||
|
|
Loading…
Reference in a new issue