Skip to content

Commit

Permalink
fix(57392): using is not suggested as a keyword (#57394)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Feb 16, 2024
1 parent 29c0024 commit 91e67ff
Show file tree
Hide file tree
Showing 66 changed files with 1,074 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/harness/fourslashInterfaceImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,7 @@ export namespace Completion {
"typeof",
"unique",
"unknown",
"using",
"var",
"void",
"while",
Expand Down Expand Up @@ -1530,6 +1531,7 @@ export namespace Completion {
"try",
"type",
"typeof",
"using",
"var",
"void",
"while",
Expand Down Expand Up @@ -1635,6 +1637,7 @@ export namespace Completion {
"typeof",
"unique",
"unknown",
"using",
"var",
"void",
"while",
Expand Down Expand Up @@ -1686,6 +1689,7 @@ export namespace Completion {
"try",
"type",
"typeof",
"using",
"var",
"void",
"while",
Expand Down
1 change: 1 addition & 0 deletions src/services/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5335,6 +5335,7 @@ function isClassMemberCompletionKeyword(kind: SyntaxKind) {
function isFunctionLikeBodyKeyword(kind: SyntaxKind) {
return kind === SyntaxKind.AsyncKeyword
|| kind === SyntaxKind.AwaitKeyword
|| kind === SyntaxKind.UsingKeyword
|| kind === SyntaxKind.AsKeyword
|| kind === SyntaxKind.SatisfiesKeyword
|| kind === SyntaxKind.TypeKeyword
Expand Down
13 changes: 13 additions & 0 deletions tests/baselines/reference/completionNoParentLocation.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
// | unknown
// | interface URIError
// | var URIError: URIErrorConstructor
// | using
// | var
// | void
// | while
Expand Down Expand Up @@ -3335,6 +3336,18 @@
],
"documentation": []
},
{
"name": "using",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "using",
"kind": "keyword"
}
]
},
{
"name": "var",
"kind": "keyword",
Expand Down
13 changes: 13 additions & 0 deletions tests/baselines/reference/completionsCommentsClass.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
// | unknown
// | interface URIError
// | var URIError: URIErrorConstructor
// | using
// | var
// | void
// | while
Expand Down Expand Up @@ -3926,6 +3927,18 @@
],
"documentation": []
},
{
"name": "using",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "using",
"kind": "keyword"
}
]
},
{
"name": "var",
"kind": "keyword",
Expand Down
Loading

0 comments on commit 91e67ff

Please sign in to comment.