Skip to content

Commit

Permalink
feat: Add Clean all command
Browse files Browse the repository at this point in the history
  • Loading branch information
jkciesluk committed Jun 2, 2023
1 parent e828bb7 commit df8c39f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const ServerCommands = {
* This zipped file can be added to a GitHub issue to help with debugging.
*/
ZipReports: "zip-reports",
/**
* Delete all directories in .bloop and restart the Bloop server.
*/
ResetWorkspace: "reset-workspace",
} as const;

type ServerCommands = typeof ServerCommands;
9 changes: 9 additions & 0 deletions packages/metals-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@
"category": "Metals",
"title": "Zip reports"
},
{
"command": "metals.reset-workspace",
"category": "Metals",
"title": "Clear caches and reimport project"
},
{
"command": "metals.show-release-notes",
"category": "Metals",
Expand Down Expand Up @@ -758,6 +763,10 @@
"command": "metals.zip-reports",
"when": "metals:enabled"
},
{
"command": "metals.reset-workspace",
"when": "metals:enabled"
},
{
"command": "metals.show-release-notes",
"when": "metals:enabled"
Expand Down
1 change: 1 addition & 0 deletions packages/metals-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ function launchMetals(
ServerCommands.ScalaCliStart,
ServerCommands.ScalaCliStop,
ServerCommands.ZipReports,
ServerCommands.ResetWorkspace,
"open-new-github-issue",
].forEach((command) => {
registerCommand("metals." + command, async () =>
Expand Down

0 comments on commit df8c39f

Please sign in to comment.