diff --git a/src/vs/editor/common/modes/supports.ts b/src/vs/editor/common/modes/supports.ts index 2cb7d13a51a77ebaaa95354ea3d114950629a341..f5af8a5910bf37ebd11cf88b37cfa0b8ac94995a 100644 --- a/src/vs/editor/common/modes/supports.ts +++ b/src/vs/editor/common/modes/supports.ts @@ -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; }