Skip to content

Commit cd906f8

Browse files
committed
Revert "fix #39713"
This reverts commit 11b2a72.
1 parent 3656454 commit cd906f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/parts/files/browser/editors/fileEditorTracker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import URI from 'vs/base/common/uri';
1111
import paths = require('vs/base/common/paths');
1212
import { IEditorViewState } from 'vs/editor/common/editorCommon';
1313
import { toResource, SideBySideEditorInput, IEditorGroup, IWorkbenchEditorConfiguration } from 'vs/workbench/common/editor';
14+
import { BINARY_FILE_EDITOR_ID } from 'vs/workbench/parts/files/common/files';
1415
import { ITextFileService, ITextFileEditorModel } from 'vs/workbench/services/textfile/common/textfiles';
1516
import { FileOperationEvent, FileOperation, IFileService, FileChangeType, FileChangesEvent, indexOf } from 'vs/platform/files/common/files';
1617
import { FileEditorInput } from 'vs/workbench/parts/files/common/editors/fileEditorInput';
@@ -263,7 +264,7 @@ export class FileEditorTracker implements IWorkbenchContribution {
263264
const resource = toResource(editor.input, { supportSideBySide: true });
264265

265266
// Binary editor that should reload from event
266-
if (resource && (e.contains(resource, FileChangeType.UPDATED) || e.contains(resource, FileChangeType.ADDED))) {
267+
if (resource && editor.getId() === BINARY_FILE_EDITOR_ID && (e.contains(resource, FileChangeType.UPDATED) || e.contains(resource, FileChangeType.ADDED))) {
267268
this.editorService.openEditor(editor.input, { forceOpen: true, preserveFocus: true }, editor.position).done(null, errors.onUnexpectedError);
268269
}
269270
});

0 commit comments

Comments
 (0)