未验证 提交 04f5a8c4 编写于 作者: J Johannes Rieken 提交者: GitHub

Merge pull request #42647 from Microsoft/joao/fix-42494

Fix #42494
...@@ -102,6 +102,7 @@ const copyrightFilter = [ ...@@ -102,6 +102,7 @@ const copyrightFilter = [
'!**/*.disabled', '!**/*.disabled',
'!**/*.code-workspace', '!**/*.code-workspace',
'!build/**/*.init', '!build/**/*.init',
'!resources/linux/snap/electron-launch',
'!resources/linux/snap/snapcraft.yaml', '!resources/linux/snap/snapcraft.yaml',
'!resources/win32/bin/code.js', '!resources/win32/bin/code.js',
'!extensions/markdown/media/tomorrow.css', '!extensions/markdown/media/tomorrow.css',
......
...@@ -731,18 +731,17 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem> ...@@ -731,18 +731,17 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
*/ */
this.telemetryService.publicLog('suggestWidget', { ...stats, ...this.editor.getTelemetryData() }); this.telemetryService.publicLog('suggestWidget', { ...stats, ...this.editor.getTelemetryData() });
this.focusedItem = null;
this.focusedItemIndex = null;
this.list.splice(0, this.list.length, this.completionModel.items);
this.list.reveal(selectionIndex, selectionIndex);
if (isFrozen) { if (isFrozen) {
this.setState(State.Frozen); this.setState(State.Frozen);
} else { } else {
this.setState(State.Open); this.setState(State.Open);
} }
this.focusedItem = null;
this.focusedItemIndex = null;
this.list.splice(0, this.list.length, this.completionModel.items);
this.list.setFocus([selectionIndex]); this.list.setFocus([selectionIndex]);
this.list.reveal(selectionIndex, selectionIndex);
// Reset focus border // Reset focus border
if (this.detailsBorderColor) { if (this.detailsBorderColor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册