Skip to content

Commit a30ddfa

Browse files
author
Benjamin Pasero
committed
editors - remove ugly cast
1 parent 43076ce commit a30ddfa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/common/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export interface IRevertOptions {
346346
}
347347

348348
export interface IMoveResult {
349-
editor: IEditorInput | IResourceEditor;
349+
editor: EditorInput | IResourceEditor;
350350
options?: IEditorOptions;
351351
}
352352

src/vs/workbench/services/editor/browser/editorService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class EditorService extends Disposable implements EditorServiceImpl {
277277
replacement: {
278278
...moveResult.editor,
279279
options: {
280-
...(moveResult.editor as IResourceEditor /* TS fail */).options,
280+
...moveResult.editor.options,
281281
...optionOverrides
282282
}
283283
}

0 commit comments

Comments
 (0)