diff --git a/src/vs/platform/editor/common/editor.ts b/src/vs/platform/editor/common/editor.ts index 18391fb329e7e..7873992809995 100644 --- a/src/vs/platform/editor/common/editor.ts +++ b/src/vs/platform/editor/common/editor.ts @@ -58,11 +58,6 @@ export interface IBaseResourceEditorInput { * looking at the scheme of the resource(s). */ readonly forceUntitled?: boolean; - - /** - * An optional id to override the editor used to edit the resource, e.g. custom editor. - */ - readonly overrideId?: string; } export interface IResourceEditorInput extends IBaseResourceEditorInput { diff --git a/src/vs/workbench/browser/layout.ts b/src/vs/workbench/browser/layout.ts index bd6dc1498400d..d2e2ebf0260e1 100644 --- a/src/vs/workbench/browser/layout.ts +++ b/src/vs/workbench/browser/layout.ts @@ -476,6 +476,8 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi } private initLayoutState(lifecycleService: ILifecycleService, fileService: IFileService): void { + + // Default Layout this.applyDefaultLayout(this.environmentService, this.storageService); // Fullscreen diff --git a/src/vs/workbench/common/editor.ts b/src/vs/workbench/common/editor.ts index a27f2e7930a63..6fe3f98fe4957 100644 --- a/src/vs/workbench/common/editor.ts +++ b/src/vs/workbench/common/editor.ts @@ -1032,7 +1032,7 @@ export class TextEditorOptions extends EditorOptions implements ITextEditorOptio return undefined; } - return TextEditorOptions.create({ ...input.options, overrideId: input.overrideId }); + return TextEditorOptions.create(input.options); } /** @@ -1363,14 +1363,18 @@ export async function pathsToEditors(paths: IPathData[] | undefined, fileService startLineNumber: path.lineNumber, startColumn: path.columnNumber || 1 }, - pinned: true - } : { pinned: true }; + pinned: true, + overrideId: path.overrideId + } : { + pinned: true, + overrideId: path.overrideId + }; let input: IResourceEditorInput | IUntitledTextResourceEditorInput; if (!exists) { input = { resource, options, forceUntitled: true }; } else { - input = { resource, options, forceFile: true, overrideId: path.overrideId }; + input = { resource, options, forceFile: true }; } return input;