scalameta / metals-vscode

Visual Studio Code extension for Metals
https://marketplace.visualstudio.com/items?itemName=scalameta.metals#overview
Apache License 2.0
298 stars 75 forks source link

Add hot code reload #1419

Closed iusildra closed 6 months ago

iusildra commented 1 year ago

Address this feature request, but for now, it should only works with sbt, I'll look to make it works with bloop too later. I adapted the implementation from vscode-java-debug to work with metals

The implementation on the debugger side is in this pr (not published yet)

There are a few inconsistencies left in my implementation on the VS Code extension:

iusildra commented 1 year ago

It will need both upcoming versions of the debugger (for the implementation) and metals (for the sync with compilation) to be fully functional

Also, before merging I'll need to change the metals server's version before which HCR would not work to give proper information

adpi2 commented 6 months ago

@tgodzik this PR is ready to be reviewed and merged.

It adds the lightning button in the debug tool bar to trigger a hot code reload.