File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ namespace ts.Completions {
187
187
188
188
function specificKeywordCompletionInfo ( keywords : readonly SyntaxKind [ ] ) : CompletionInfo {
189
189
return {
190
- isGlobalCompletion : true ,
190
+ isGlobalCompletion : false ,
191
191
isMemberCompletion : false ,
192
192
isNewIdentifierLocation : false ,
193
193
entries : keywords . map ( k => ( {
@@ -819,7 +819,7 @@ namespace ts.Completions {
819
819
case CompletionDataKind . JsDocParameterName :
820
820
return JsDoc . getJSDocParameterNameCompletionDetails ( name ) ;
821
821
case CompletionDataKind . Keywords :
822
- return request . keywords . some ( k => tokenToString ( k ) === name ) ? createSimpleDetails ( name , ScriptElementKind . keyword , SymbolDisplayPartKind . keyword ) : undefined ;
822
+ return request . keywords . indexOf ( stringToToken ( name ) ! ) > - 1 ? createSimpleDetails ( name , ScriptElementKind . keyword , SymbolDisplayPartKind . keyword ) : undefined ;
823
823
default :
824
824
return Debug . assertNever ( request ) ;
825
825
}
You can’t perform that action at this time.
0 commit comments