Skip to content

Html optilambda view - #46

Merged
Bastacyclop merged 50 commits into
mainfrom
html-optilambda-view
Jul 24, 2026
Merged

Html optilambda view#46
Bastacyclop merged 50 commits into
mainfrom
html-optilambda-view

Conversation

@Ultra-MG

Copy link
Copy Markdown
Collaborator

Summary

This PR adds the new universal HTML OptiLambda diff/trace experience for the VS Code extension.

Work Done

  • Replaced the user-facing step diff flow with one universal HTML webview diff.
  • Added OptiLambda Surface/Internal/Fully-Typed switching in diff and trace views.
  • Made Surface OptiLambda the default HTML representation for step diffs.
  • Added lazy generation for missing OptiLambda diff representations.
  • Added ghost and contract grouping with G* and C* buttons.
  • Added context diffs inside ghost/contract popups for step diff views.
  • Added Surface hover popups for variable/type/syntax details.
  • Fixed webview search behavior for diff and trace views.
  • Added detachable diff/trace panels with disabled Detached state.
  • Removed old native VS Code diff code from the default workflow.
  • Cleaned up stale/unused diff-view code paths.
  • Updated the VS Code extension README with setup, usage, commands, settings, and troubleshooting.

@Ultra-MG
Ultra-MG force-pushed the html-optilambda-view branch from 10773f7 to 13e82a8 Compare July 22, 2026 11:01
@Ultra-MG
Ultra-MG force-pushed the html-optilambda-view branch from 13e82a8 to 10773f7 Compare July 22, 2026 13:58
Comment thread lib/optilambda/optilambda_syntax.md Outdated
Comment thread tests_infra/optilambda/printcpp_exp.opti Outdated
Comment thread tests_infra/optilambda/printcpp_exp.opti Outdated
Comment thread tests_infra/optilambda/printcpp_exp.opti Outdated
Comment thread tests_infra/optilambda/printcpp_exp.opti Outdated
Comment thread tests_infra/optilambda/printcpp.cpp
Comment thread tests_infra/optilambda/printcpp_exp.opti Outdated
Comment thread tests_infra/optilambda/printer_basic.ml Outdated
Comment thread tests_infra/optilambda/printer_basic.ml Outdated
Comment thread tests_infra/optilambda/printer_basic.ml Outdated
Comment thread tools/web_view/optitrust_syntax_highlight.js Outdated
@Ultra-MG

Copy link
Copy Markdown
Collaborator Author

optiNLP branch is now merged with this branch so all the changes from there are present here

Comment on lines -455 to +600
ghost(in_range_shift()[x := x, k := k, a := a, b := b, s := s]);
ghost(in_range_extend()[x := x + k, r1 := range(a + k, b + k, s), r2 := r]);
ghost(in_range_shift, "x := x", "k := k", "a := a", "b := b", "s := s");
ghost(in_range_extend, "x := x + k", "r1 := range(a + k, b + k, s)", "r2 := r");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll create a separate issue so that we can merge this PR first. Here the previous call style is what we want (no string arguments).

@Bastacyclop

Copy link
Copy Markdown
Collaborator

Thanks for the work @Ultra-MG ! I'll merge this, start using the extension, and create separate issues for things that still need tweaking.

@Bastacyclop
Bastacyclop merged commit 53c4f6e into main Jul 24, 2026
1 check passed
@Bastacyclop
Bastacyclop deleted the html-optilambda-view branch July 24, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants