Fix bigInt completions (#45059)

* Fix bigInt completions

* Added regresion test
This commit is contained in:
Armando Aguirre
2021-07-30 14:40:50 -07:00
committed by GitHub
parent bbd9c3a6e6
commit 76d754329e
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -2013,7 +2013,8 @@ namespace ts.Completions {
const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken) ||
isSolelyIdentifierDefinitionLocation(contextToken) ||
isDotOfNumericLiteral(contextToken) ||
isInJsxText(contextToken);
isInJsxText(contextToken) ||
isBigIntLiteral(contextToken);
log("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start));
return result;
}
@@ -0,0 +1,9 @@
/// <reference path="fourslash.ts" />
//// declare const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number
//// const foo = 0n/*1*/;
verify.completions({
marker: '1',
exact: []
});