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

Fix dot completions not being enable on start ot new line

上级 ee3553c5
......@@ -231,7 +231,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
// TODO: Workaround for https://github.com/Microsoft/TypeScript/issues/13456
// Only enable dot completions when previous character is an identifier.
// Prevents incorrectly completing while typing spread operators.
if (position.character > 0) {
if (position.character > 1) {
const preText = document.getText(new Range(
position.line, 0,
position.line, position.character - 1));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册