未验证 提交 14a3cec0 编写于 作者: L Logan Ramos

Fix #122360

上级 33a9b2ad
......@@ -49,8 +49,14 @@ export class BinaryFileEditor extends BaseBinaryResourceEditor {
// Try to let the user pick an override if there is one availabe
const overridenInput = await this.editorOverrideService.resolveEditorOverride(input, { ...options, override: EditorOverride.PICK, }, this.group);
// Open the overrriden input, else open the text based input
await this.editorService.openEditor(overridenInput?.editor ?? input, overridenInput?.options ?? { ...options, override: EditorOverride.DISABLED, }, overridenInput?.group ?? this.group);
let newOptions = overridenInput?.options ?? options;
newOptions = { ...newOptions, override: EditorOverride.DISABLED };
// Replace the overrriden input, with the text based input
await this.editorService.replaceEditors([{
editor: input,
replacement: overridenInput?.editor ?? input,
options: newOptions,
}], overridenInput?.group ?? this.group);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册