提交 052f6405 编写于 作者: M Matt Bierner

Enable dot completions in a few more contexts

上级 8e58e709
......@@ -198,7 +198,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
const preText = document.getText(new Range(
new Position(position.line, 0),
new Position(position.line, position.character - 1)));
enableDotCompletions = preText.match(/[a-z_$]\s*$/ig) !== null;
enableDotCompletions = preText.match(/[a-z_$\)\]\}]\s*$/ig) !== null;
}
for (let i = 0; i < body.length; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册