提交 1c728c97 编写于 作者: B Benjamin Pasero

Editor title changes as soon as I edit a file, when using --diff (fixes #4178)

上级 dcdc6401
......@@ -160,7 +160,9 @@ export class FileTracker implements IWorkbenchContribution {
if (input instanceof FileEditorInput) {
let fileInput = <FileEditorInput>input;
if (fileInput.getResource().toString() === resource.toString()) {
this.eventService.emit(WorkbenchEventType.EDITOR_INPUT_STATE_CHANGED, new EditorInputEvent(fileInput));
let inputEvent = editor.input instanceof DiffEditorInput ? <DiffEditorInput>editor.input : fileInput; // make sure to still send around the input from the diff editor if given
this.eventService.emit(WorkbenchEventType.EDITOR_INPUT_STATE_CHANGED, new EditorInputEvent(inputEvent));
}
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册