mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix bigInt completions (#45059)
* Fix bigInt completions * Added regresion test
This commit is contained in:
@@ -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: []
|
||||
});
|
||||
Reference in New Issue
Block a user