Skip to content

Commit

Permalink
Merge pull request #558 from ckipp01/zip
Browse files Browse the repository at this point in the history
feat: add in zip reports command
  • Loading branch information
ckipp01 authored May 2, 2023
2 parents 26968e2 + 52cfe46 commit fa1c88e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/metals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ The following commands are provided by `nvim-metals`:
* |MetalsSwitchBsp|
* |MetalsToggleLogs|
* |MetalsUpdate|
* |MetalsZipReports|

*MetalsAnalyzeStacktrace*
MetalsAnalyzeStacktrace Takes the stacktrace from your current register
Expand Down Expand Up @@ -762,6 +763,11 @@ MetalsUpdate Update to the latest stable version of Metals or
NOTE that behind the scenes this calls the same
function as |MetalsInstall|.

*MetalsZipReports*
MetalsZipReports Zip up the icognito repos that are located under
`.metals/.reports/metals` than can be used to
upload with an issue report.

================================================================================
LUA API *metals-lua-api*

Expand Down Expand Up @@ -1045,6 +1051,11 @@ type_of_range() Use to get the type of the selected range. NOTE that
<

*zip_reports()*
zip_reports() Zip up the icognito repos that are located under
`.metals/.reports/metals` than can be used to upload
with an issue report.

================================================================================
METALS TVP MODULE *metals-tvp-module*

Expand Down
4 changes: 4 additions & 0 deletions lua/metals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ M.open_new_github_issue = function()
execute_command({ command = "metals.open-new-github-issue" })
end

M.zip_reports = function()
execute_command({ command = "metals.zip-reports" })
end

M.commands = function()
vim.ui.select(commands.commands_table, {
prompt = "Metals Commands",
Expand Down
5 changes: 5 additions & 0 deletions lua/metals/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ local commands_table = {
label = "Update Metals",
hint = "Update to the latest Metals.",
},
{
id = "zip_reports",
label = "Zip Error Reports",
hint = "Zip up incongnito reports",
},
}

local dap_commands_table = {
Expand Down

0 comments on commit fa1c88e

Please sign in to comment.