Skip to content

feat: variable inspector, plot viewer, SciML snippets, CI (v0.2.0) - #2

Merged
singhharsh1708 merged 1 commit into
mainfrom
feat/inspector-snippets-plots-ci
Jun 18, 2026
Merged

singhharsh1708 merged 1 commit into
mainfrom
feat/inspector-snippets-plots-ci

Conversation

@singhharsh1708

Copy link
Copy Markdown
Owner

Summary

  • Variable Inspector — after every Run Block, a side panel auto-opens showing all live Main bindings (name / type / size / value preview). Julia appends VAR_INSPECT_SUFFIX to each block; parseVariables() extracts the delimited output.
  • Plot Viewer — if the block uses Plots.jl or CairoMakie, the figure is saved to a temp PNG and shown in a WebView side panel automatically. Re-run to refresh.
  • SciML Snippets — CompletionItemProvider for Julia files with 8 prefixes: ode, sde, mtk, neural_ode, bvp, optim, pinn, diffeq → full boilerplate on Tab.
  • GitHub Actions CI — compile + typecheck + package on every push/PR; auto-attach .vsix to GitHub Releases on v*.*.* tags.

New files

  • src/variableInspector.ts
  • src/plotViewer.ts
  • src/snippets.ts
  • .github/workflows/ci.yml

Test plan

  • Run Block on a cell that defines variables → Variable Inspector panel opens with correct names/types
  • Run Block on a cell with plot(...) → Plot Viewer panel opens with the figure
  • Run Block on a cell with no plot → Plot Viewer does NOT open
  • Type ode in a .jl file → snippet appears in completion list, Tab expands full boilerplate
  • Type neural_ode → Lux.jl boilerplate expands correctly
  • Push to main → CI workflow triggers and packages the extension
  • Compile check: npx tsc -p . no errors

🤖 Generated with Claude Code

Variable inspector
- After every Run Block, a side panel shows all Main bindings
  (name / type / size / value preview) — no extra command needed
- Julia appends VAR_INSPECT_SUFFIX to each block; parseVariables()
  extracts the delimited output

Plot viewer
- If the block uses Plots.jl or CairoMakie, the figure is saved to
  a temp PNG and displayed in a WebView side panel automatically
- Supports Plots.savefig and CairoMakie/Makie save APIs

SciML snippets
- CompletionItemProvider for Julia files: ode, sde, mtk,
  neural_ode, bvp, optim, pinn, diffeq prefixes → full boilerplate

GitHub Actions CI
- Build + typecheck + package on every push/PR to main
- Auto-attach .vsix to GitHub Releases on version tags
@singhharsh1708
singhharsh1708 merged commit d43a2d4 into main Jun 18, 2026
1 of 2 checks passed
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.

1 participant