提交 cb1768b6 编写于 作者: M Matt Bierner

Fix commit charactes not working if you trigger them manually after a `.`

Cases like: `console.|` should have commit characters while, `...|` should not
上级 f8486f95
......@@ -459,7 +459,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
const preText = document.getText(new vscode.Range(
position.line, 0,
position.line, position.character - 1));
return preText.match(/(^|[a-z_$\(\)\[\]\{\}])\s*$/ig) !== null;
return preText.match(/(^|[a-z_$\(\)\[\]\{\}]|[^.]\.)\s*$/ig) !== null;
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册