提交 197bac8f 编写于 作者: A Alex Dima

Fixes #38291

上级 2582ff3f
......@@ -32,7 +32,12 @@ const CORE_WEIGHT = KeybindingsRegistry.WEIGHT.editorCore();
export abstract class CoreEditorCommand extends EditorCommand {
public runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, args: any): void {
this.runCoreEditorCommand(editor._getCursors(), args || {});
const cursors = editor._getCursors();
if (!cursors) {
// the editor has no view => has no cursors
return;
}
this.runCoreEditorCommand(cursors, args || {});
}
public abstract runCoreEditorCommand(cursors: ICursors, args: any): void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册