Skip to content

Commit 11b2a72

Browse files
committed
fix #39713
1 parent 12f10ab commit 11b2a72

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ 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';
1514
import { ITextFileService, ITextFileEditorModel } from 'vs/workbench/services/textfile/common/textfiles';
1615
import { FileOperationEvent, FileOperation, IFileService, FileChangeType, FileChangesEvent, indexOf } from 'vs/platform/files/common/files';
1716
import { FileEditorInput } from 'vs/workbench/parts/files/common/editors/fileEditorInput';
@@ -264,7 +263,7 @@ export class FileEditorTracker implements IWorkbenchContribution {
264263
const resource = toResource(editor.input, { supportSideBySide: true });
265264

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

0 commit comments

Comments
 (0)