提交 266e686d 编写于 作者: I isidor

open editors: do not highlight entries for now

上级 a3887db1
...@@ -17,7 +17,6 @@ import {IInstantiationService} from 'vs/platform/instantiation/common/instantiat ...@@ -17,7 +17,6 @@ import {IInstantiationService} from 'vs/platform/instantiation/common/instantiat
import {IEventService} from 'vs/platform/event/common/event'; import {IEventService} from 'vs/platform/event/common/event';
import {IConfigurationService} from 'vs/platform/configuration/common/configuration'; import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
import {EventType as WorkbenchEventType, UntitledEditorEvent} from 'vs/workbench/common/events'; import {EventType as WorkbenchEventType, UntitledEditorEvent} from 'vs/workbench/common/events';
import {EditorInput} from 'vs/workbench/common/editor';
import {AdaptiveCollapsibleViewletView} from 'vs/workbench/browser/viewlet'; import {AdaptiveCollapsibleViewletView} from 'vs/workbench/browser/viewlet';
import {ITextFileService, TextFileChangeEvent, EventType as FileEventType, AutoSaveMode, IFilesConfiguration} from 'vs/workbench/parts/files/common/files'; import {ITextFileService, TextFileChangeEvent, EventType as FileEventType, AutoSaveMode, IFilesConfiguration} from 'vs/workbench/parts/files/common/files';
import {IWorkbenchEditorService} from 'vs/workbench/services/editor/common/editorService'; import {IWorkbenchEditorService} from 'vs/workbench/services/editor/common/editorService';
...@@ -143,21 +142,21 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView { ...@@ -143,21 +142,21 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView {
// Make sure to keep active editor input highlighted // Make sure to keep active editor input highlighted
if (this.model.activeGroup) { if (this.model.activeGroup) {
this.highlightEntry(this.model.activeGroup.activeEditor); // this.highlightEntry(new OpenEditor(this.model.activeGroup.activeEditor, this.model.activeGroup));
} }
} }
} }
private highlightEntry(entry: EditorInput): void { // private highlightEntry(entry: OpenEditor): void {
this.tree.clearFocus(); // this.tree.clearFocus();
this.tree.clearSelection(); // this.tree.clearSelection();
if (entry) { // if (entry) {
this.tree.setFocus(entry); // this.tree.setFocus(entry);
this.tree.setSelection([entry]); // this.tree.setSelection([entry]);
this.tree.reveal(entry).done(null, errors.onUnexpectedError); // this.tree.reveal(entry).done(null, errors.onUnexpectedError);
} // }
} // }
private onConfigurationUpdated(configuration: IFilesConfiguration): void { private onConfigurationUpdated(configuration: IFilesConfiguration): void {
// TODO@isidor change configuration name // TODO@isidor change configuration name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册