Change:
Testing new untitled file and add some text. Editor: Open File The original untitled file is left open and changes in the Hex Editor are not reflected in that original file. !
This will be fixed by

Discussion:
import { Lazy } from 'vs/base/common/lazy'; import { Disposable, IDisposable, toDisposable } from 'vs/base/common/lifecycle'; import { basename, extname, isEqual } from 'vs/base/common/resources'; <ins> import Severity from 'vs/base/common/severity'; </ins> import { URI } from 'vs/base/common/uri'; import { generateUuid } from 'vs/base/common/uuid'; import { RedoCommand, UndoCommand } from 'vs/editor/browser/editorExtensions'; import * as nls from 'vs/nls'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { IContextKey, IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; <ins> import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; </ins> import { EditorActivation, IEditorOptions, ITextEditorOptions } from 'vs/platform/editor/common/editor'; import { FileOperation, IFileService } from 'vs/platform/files/common/files'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';

import * as colorRegistry from 'vs/platform/theme/common/colorRegistry'; import { registerThemingParticipant } from 'vs/platform/theme/common/themeService'; import { IWorkbenchContribution } from 'vs/workbench/common/contributions'; <del> import { EditorInput, EditorOptions, Extensions as EditorInputExtensions, GroupIdentifier, IEditorInput, IEditorInputFactoryRegistry, IEditorPane } from 'vs/workbench/common/editor'; </del> <ins> import { EditorInput, EditorOptions, Extensions as EditorInputExtensions, GroupIdentifier, IEditorInput, IEditorInputFactoryRegistry, IEditorPane, SaveReason } from 'vs/workbench/common/editor'; </ins> import { DiffEditorInput } from 'vs/workbench/common/editor/diffEditorInput'; import { CONTEXT_CUSTOM_EDITORS, CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE, CustomEditorCapabilities, CustomEditorInfo, CustomEditorInfoCollection, CustomEditorPriority, ICustomEditorService } from 'vs/workbench/contrib/customEditor/common/customEditor'; import { CustomEditorModelManager } from 'vs/workbench/contrib/customEditor/common/customEditorModelManager';

@IStorageService storageService: IStorageService, @IConfigurationService private readonly configurationService: IConfigurationService, @IEditorService private readonly editorService: IEditorService, <ins> @IDialogService private readonly dialogService: IDialogService, </ins> @IEditorGroupsService private readonly editorGroupService: IEditorGroupsService, @IInstantiationService private readonly instantiationService: IInstantiationService, @IQuickInputService private readonly quickInputService: IQuickInputService,

const existing = firstOrDefault(this.editorService.findEditors(resource, targetGroup)); if (existing) { if (!input.matches(existing)) { <ins> // The current editor needs to be saved before it can be opened in a custom editor if (existing.isDirty()) { const message = nls.localize('promptOpenWith.unsaved', 'This file has unsaved changes and is attempting to be opened in a custom editor.'); const buttonActions: string[] = [ nls.localize('save', 'Save'), nls.localize('discard', 'Discard Changes'), nls.localize('abort', 'Abort') ]; enum UnsavedEditorAction { SAVE = 0, DISCARD = 1, ABORT = 2, } const res = await this.dialogService.show(Severity.Warning, message, buttonActions); if (res.choice === UnsavedEditorAction.SAVE) { await existing.save(this.editorGroupService.activeGroup.id, { reason: SaveReason.EXPLICIT }); } else if (res.choice === UnsavedEditorAction.DISCARD) { await this.editorService.revert({ groupId: this.editorGroupService.activeGroup.id, editor: existing }); } else { return; } } </ins> await this.editorService.replaceEditors([{ editor: existing, replacement: input,