Skip to content

Commit

Permalink
Merge pull request #1382 from scalameta/zip-reports
Browse files Browse the repository at this point in the history
feature: zip reports command added
  • Loading branch information
tgodzik authored Mar 31, 2023
2 parents 9c60344 + 69693a3 commit a41d39b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ export const ServerCommands = {
* only if more than one result is found.
*/
SuperMethodHierarchy: "super-method-hierarchy",
/**
* Zip all the reports from the `.metals/.reports` into a `.metals/reports.zip`.
* This zipped file can be added to a GitHub issue to help with debugging.
*/
ZipReports: "zip-reports",
} 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 @@ -479,6 +479,11 @@
"category": "Metals",
"title": "Run doctor"
},
{
"command": "metals.zip-reports",
"category": "Metals",
"title": "Zip reports"
},
{
"command": "metals.show-release-notes",
"category": "Metals",
Expand Down Expand Up @@ -749,6 +754,10 @@
"command": "metals.doctor-run",
"when": "metals:enabled"
},
{
"command": "metals.zip-reports",
"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 @@ -490,6 +490,7 @@ function launchMetals(
ServerCommands.AmmoniteStop,
ServerCommands.ScalaCliStart,
ServerCommands.ScalaCliStop,
ServerCommands.ZipReports,
"open-new-github-issue",
].forEach((command) => {
registerCommand("metals." + command, async () =>
Expand Down

0 comments on commit a41d39b

Please sign in to comment.