Skip to content

Commit

Permalink
Scala CLI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Jul 25, 2022
1 parent bfc4de1 commit b9923c5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Binary file added metals-1.10.7.vsix
Binary file not shown.
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@
"type": "string",
"markdownDescription": "Optional Eclipse format profile to use."
},
"metals.scalaCliLauncher": {
"type": "string",
"markdownDescription": "Optional path to Scala CLI launcher to use."
},
"metals.suggestLatestUpgrade": {
"type": "boolean",
"default": false,
Expand Down Expand Up @@ -522,6 +526,16 @@
"category": "Metals",
"title": "Stop Ammonite build server"
},
{
"command": "metals.scala-cli-start",
"category": "Metals",
"title": "Start Scala CLI server"
},
{
"command": "metals.scala-cli-stop",
"category": "Metals",
"title": "Stop Scala CLI server"
},
{
"command": "metals.toggle-implicit-conversions-and-classes",
"category": "Metals",
Expand Down Expand Up @@ -723,6 +737,14 @@
{
"command": "metals.ammonite-stop",
"when": "metals:enabled"
},
{
"command": "metals.scala-cli-start",
"when": "metals:enabled"
},
{
"command": "metals.scala-cli-stop",
"when": "metals:enabled"
}
],
"explorer/context": [
Expand Down
2 changes: 2 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ function launchMetals(
ServerCommands.CancelCompilation,
ServerCommands.AmmoniteStart,
ServerCommands.AmmoniteStop,
ServerCommands.ScalaCliStart,
ServerCommands.ScalaCliStop,
].forEach((command) => {
registerCommand("metals." + command, async () =>
client.sendRequest(ExecuteCommandRequest.type, { command: command })
Expand Down

0 comments on commit b9923c5

Please sign in to comment.