提交 56d87a3c 编写于 作者: J Johannes Rieken

refilter completions when moving cursor inside word,...

refilter completions when moving cursor inside word, https://github.com/microsoft/vscode/issues/3295
上级 e3202ed6
......@@ -288,7 +288,7 @@ export class SuggestModel implements IDisposable {
this._currentSelection = this._editor.getSelection();
if (!e.selection.isEmpty()
|| e.reason !== CursorChangeReason.NotSet
|| (e.reason !== CursorChangeReason.NotSet && e.reason !== CursorChangeReason.Explicit)
|| (e.source !== 'keyboard' && e.source !== 'deleteLeft')
) {
// Early exit if nothing needs to be done!
......@@ -357,6 +357,11 @@ export class SuggestModel implements IDisposable {
}, this._quickSuggestDelay);
} else if (e.reason === CursorChangeReason.Explicit) {
// suggest is active and something like cursor keys are used to move
// the cursor. this means we can refilter at the new position
this._refilterCompletionItems();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册