Skip to content

Commit d8d5ead

Browse files
authored
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!
1 parent 29f9493 commit d8d5ead

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/harness/fourslash.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4894,12 +4894,14 @@ namespace FourSlashInterface {
48944894
"declare",
48954895
"keyof",
48964896
"module",
4897+
"namespace",
48974898
"never",
48984899
"readonly",
48994900
"number",
49004901
"object",
49014902
"string",
49024903
"symbol",
4904+
"type",
49034905
"unique",
49044906
"unknown",
49054907
"bigint",
@@ -5091,12 +5093,14 @@ namespace FourSlashInterface {
50915093
"declare",
50925094
"keyof",
50935095
"module",
5096+
"namespace",
50945097
"never",
50955098
"readonly",
50965099
"number",
50975100
"object",
50985101
"string",
50995102
"symbol",
5103+
"type",
51005104
"unique",
51015105
"unknown",
51025106
"bigint",

src/services/completions.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2406,6 +2406,8 @@ namespace ts.Completions {
24062406
return isFunctionLikeBodyKeyword(kind)
24072407
|| kind === SyntaxKind.DeclareKeyword
24082408
|| kind === SyntaxKind.ModuleKeyword
2409+
|| kind === SyntaxKind.TypeKeyword
2410+
|| kind === SyntaxKind.NamespaceKeyword
24092411
|| isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword;
24102412
case KeywordCompletionFilters.FunctionLikeBodyKeywords:
24112413
return isFunctionLikeBodyKeyword(kind);

0 commit comments

Comments
 (0)