Reputation: 1515
In reference, there is no API to close Folder/Workspace.
https://code.visualstudio.com/api/references/commands
Then, how can I close Folder/Workspace programatically?
Upvotes: 0
Views: 419
Reputation: 2632
Try this:
vscode.commands.executeCommand('workbench.action.closeFolder');
Upvotes: 2