CodinGame / monaco-vscode-api

VSCode public API plugged on the monaco editor
MIT License
226 stars 31 forks source link

fix: ensure that local change commands are registered #299

Closed CompuIves closed 9 months ago

CompuIves commented 9 months ago

The commands workbench.files.action.acceptLocalChanges and workbench.files.action.revertLocalChanges were not registered because all the CommandsRegistry.registerCommand calls were tree-shaken out for the file where they were registered. I think that was introduced to shake _files.windowOpen and _files.newWindow out, so I've changed it so that the commands are shaken out explicitly instead of shaking out the whole file.