Is there VSCode api for split in group action as seen below?
split in group action
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
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()
executeCommand()