Vscode extension#43
Conversation
Add workspace detection, command execution, diff/trace/test/health commands, associated-file helpers, webview rendering, executed-line decorations, and OptiLambda language support
- Add OptiLambda output mode to framework printing. - Generate OptiLambda sidecars for step diffs. - Add C/C++ and OptiLambda toggles in diff and trace views. - Theme generated webviews for VS Code.
|
Hey @Ultra-MG , I'm currently installing the extension. I get the following warnings during It is then impossible to run |
|
I have |
|
Re-running with node v24.18.0 (npm v11.16.0): |
|
Pressing |
|
If you can address the vulnerabilities being reported and the F6 window update behaviour, then this seems ready to merge and a nice quality-of-life improvement! |
|
hey @Bastacyclop For the F6 diff view ,I just tried this on my side, and it seems to work for me. When I press F6 after moving the diff to a new window, the existing window is brought back into focus rather than creating a second diff for the same line. Regarding the vulnerabilities, I fixed the npm audit warnings by updating @vscode/vsce to a newer version. The reported vulnerabilities came from a transitive dependency of vsce, which is only used for building/packaging the extension and is not part of the extension runtime. After the update, I re-ran npm install, npm audit, and the build/packaging checks to confirm that the warnings were resolved. |
|
yes, the intended behaviour is that the diff window is updated even if two different lines are queried. one might wonder if it should be updated if two different files are queried. I'm thinking that always updating the same window by default might make sense, if we have a way to disconnect a window from these updates in order to keep it open. |
There was a problem hiding this comment.
btw, is it normal that this file is so big ? should it be committed ?
There was a problem hiding this comment.
Yes, this file is generated, not written manually. It is produced by npm run build:webview from tools/web_view/optitrust_syntax_highlight.mjs using esbuild.
it is large because it bundles Shiki and its dependencies
I added this so the diff webview can get syntax highlighting closer to VS Code’s own highlighting instead of relying only on the older Highlight.js styling.
What we can do is remove it from the commit and generate it during packaging.
There was a problem hiding this comment.
yes let's remove it from the commit unless there is a good reason to save its contents
can you try it again now? |
This PR adds the initial OptiTrust VS Code extension and integrates it with the in-tree OptiTrust workflow.
Main features:
OptiTrustoutput panel..optias the OptiLambda file extension..vsixpackaging support.Notes:
.mlfiles remain handled by the normal OCaml extension..optiremains one language registration.