Skip to content

Commit 91e67ff

Browse files
authored
fix(57392): using is not suggested as a keyword (#57394)
1 parent 29c0024 commit 91e67ff

File tree

66 files changed

+1074
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1074
-0
lines changed

src/harness/fourslashInterfaceImpl.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ export namespace Completion {
14181418
"typeof",
14191419
"unique",
14201420
"unknown",
1421+
"using",
14211422
"var",
14221423
"void",
14231424
"while",
@@ -1530,6 +1531,7 @@ export namespace Completion {
15301531
"try",
15311532
"type",
15321533
"typeof",
1534+
"using",
15331535
"var",
15341536
"void",
15351537
"while",
@@ -1635,6 +1637,7 @@ export namespace Completion {
16351637
"typeof",
16361638
"unique",
16371639
"unknown",
1640+
"using",
16381641
"var",
16391642
"void",
16401643
"while",
@@ -1686,6 +1689,7 @@ export namespace Completion {
16861689
"try",
16871690
"type",
16881691
"typeof",
1692+
"using",
16891693
"var",
16901694
"void",
16911695
"while",

src/services/completions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5335,6 +5335,7 @@ function isClassMemberCompletionKeyword(kind: SyntaxKind) {
53355335
function isFunctionLikeBodyKeyword(kind: SyntaxKind) {
53365336
return kind === SyntaxKind.AsyncKeyword
53375337
|| kind === SyntaxKind.AwaitKeyword
5338+
|| kind === SyntaxKind.UsingKeyword
53385339
|| kind === SyntaxKind.AsKeyword
53395340
|| kind === SyntaxKind.SatisfiesKeyword
53405341
|| kind === SyntaxKind.TypeKeyword

tests/baselines/reference/completionNoParentLocation.baseline

+13
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
// | unknown
135135
// | interface URIError
136136
// | var URIError: URIErrorConstructor
137+
// | using
137138
// | var
138139
// | void
139140
// | while
@@ -3335,6 +3336,18 @@
33353336
],
33363337
"documentation": []
33373338
},
3339+
{
3340+
"name": "using",
3341+
"kind": "keyword",
3342+
"kindModifiers": "",
3343+
"sortText": "15",
3344+
"displayParts": [
3345+
{
3346+
"text": "using",
3347+
"kind": "keyword"
3348+
}
3349+
]
3350+
},
33383351
{
33393352
"name": "var",
33403353
"kind": "keyword",

tests/baselines/reference/completionsCommentsClass.baseline

+13
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
// | unknown
187187
// | interface URIError
188188
// | var URIError: URIErrorConstructor
189+
// | using
189190
// | var
190191
// | void
191192
// | while
@@ -3926,6 +3927,18 @@
39263927
],
39273928
"documentation": []
39283929
},
3930+
{
3931+
"name": "using",
3932+
"kind": "keyword",
3933+
"kindModifiers": "",
3934+
"sortText": "15",
3935+
"displayParts": [
3936+
{
3937+
"text": "using",
3938+
"kind": "keyword"
3939+
}
3940+
]
3941+
},
39293942
{
39303943
"name": "var",
39313944
"kind": "keyword",

0 commit comments

Comments
 (0)