提交 af335fe5 编写于 作者: M Martin Aeschlimann

[snippets] avoid incomplete proposals

上级 e5037a5e
......@@ -164,7 +164,6 @@ export class SnippetsRegistry {
let currentFullWord = SnippetsRegistry.getNonWhitespacePrefix(model, position).toLowerCase();
let result : modes.ISuggestResult = {
currentWord: currentWord,
incomplete: currentWord.length === 0,
suggestions: []
};
......@@ -193,6 +192,7 @@ export class SnippetsRegistry {
} else if (currentFullWord.length > currentWord.length && strings.startsWith(label, currentFullWord)) {
p = objects.clone(p);
p.overwriteBefore = currentFullWord.length;
p.filterText = label;
} else {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册