Skip to content

Commit 76d7543

Browse files
authored
Fix bigInt completions (microsoft#45059)
* Fix bigInt completions * Added regresion test
1 parent bbd9c3a commit 76d7543

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/services/completions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,8 @@ namespace ts.Completions {
20132013
const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken) ||
20142014
isSolelyIdentifierDefinitionLocation(contextToken) ||
20152015
isDotOfNumericLiteral(contextToken) ||
2016-
isInJsxText(contextToken);
2016+
isInJsxText(contextToken) ||
2017+
isBigIntLiteral(contextToken);
20172018
log("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start));
20182019
return result;
20192020
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
//// declare const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number
4+
//// const foo = 0n/*1*/;
5+
6+
verify.completions({
7+
marker: '1',
8+
exact: []
9+
});

0 commit comments

Comments
 (0)