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

fixes Microsoft/monaco-editor#739

This reverts commit 04f5a8c4d6, reversing
changes made to f8b2e22b89.
This commit is contained in:
Joao Moreno
2018-02-28 11:40:25 +01:00
parent f5ab5d6a8b
commit 0bc6ea5f77
2 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,6 @@ const copyrightFilter = [
'!**/*.disabled',
'!**/*.code-workspace',
'!build/**/*.init',
'!resources/linux/snap/electron-launch',
'!resources/linux/snap/snapcraft.yaml',
'!resources/win32/bin/code.js',
'!extensions/markdown/media/tomorrow.css',

View File

@@ -731,17 +731,18 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
*/
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) {
this.setState(State.Frozen);
} else {
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.reveal(selectionIndex, selectionIndex);
// Reset focus border
if (this.detailsBorderColor) {