Is there VSCode api for split in group action
as seen below?
Somthing like
const doc = await workspace.openTextDocument({
language: "text",
});
const editor = await window.showTextDocument(doc);
editor.edit((edit) => edit.insert(new Position(0, 0), "hello"));
editor.split() // <--- this
CodePudding user response:
Find out which command is bound to the keybinding and then execute that command with the extension API, method is (as Mark points out) executeCommand()