提交 5f242759 编写于 作者: J Johannes Rieken

easy checks, #36427

上级 e988aa80
......@@ -55,7 +55,7 @@ export class TabCompletionController implements editorCommon.IEditorContribution
const prefix = getNonWhitespacePrefix(editor.getModel(), editor.getPosition());
selectFn = prefix && (snippet => endsWith(prefix, snippet.prefix));
} else {
} else if (e.selection.startLineNumber === e.selection.endLineNumber && editor.getModel().getValueLengthInRange(e.selection) <= 100) {
// actual selection -> snippet must be a full match
const selected = editor.getModel().getValueInRange(e.selection);
selectFn = snippet => selected === snippet.prefix;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册