提交 a30ddfa5 编写于 作者: B Benjamin Pasero

editors - remove ugly cast

上级 43076ce3
......@@ -346,7 +346,7 @@ export interface IRevertOptions {
}
export interface IMoveResult {
editor: IEditorInput | IResourceEditor;
editor: EditorInput | IResourceEditor;
options?: IEditorOptions;
}
......
......@@ -277,7 +277,7 @@ export class EditorService extends Disposable implements EditorServiceImpl {
replacement: {
...moveResult.editor,
options: {
...(moveResult.editor as IResourceEditor /* TS fail */).options,
...moveResult.editor.options,
...optionOverrides
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册