feat(sql-editor): Jupyter-style notebook cells in Monaco - #124
Merged
Conversation
Add cell banding and left-edge accents in the single Monaco buffer, In [n] strip chrome with per-cell Play (execute statementIndices), Out [n] result labels, and preserve indices across password/Safe-mode resume. Reuses the existing splitter and run pipeline. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Peel leading @set directives before Prettier so mixed SQL+JS samples format; show Format SQL+JS status when sql-formatter/Prettier run. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Stop writing the registration flag onto the Monaco ESM namespace (non-extensible); use a module-local ready bit so foxschema-sql loads and embedded JavaScript highlighting actually applies. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
3 tasks
…ns (#125) * feat(sql-editor): FoxScript AST, markers, virtual docs, semantic tokens Add parseFoxScript / compileFoxScriptPlan over the existing splitter, register Monaco foxscript language, structural markers, JS/TS virtual docs for last/vars/sql IntelliSense, and schema-cache semantic tokens. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> * refactor(sql-editor): one FoxScript parse, cached facade, in-place virtual docs Avoid re-parsing and disposing cell models on every decorate tick: LRU-cache parseFoxScript on the web facade, drive glyphs/markers/virtual docs from one document, and update virtual models with setValue when cells are stable. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> * feat(sql-editor): add FoxScript notebook and Node sql samples Thirteen new bookmarks: interleaved notebook tour, @set column, multi-SQL, reduce/pivot, domains, try/catch, TS interfaces, sql.list/raw, Node-TS sql, merge reshape, JSON round-trip, and strip ▶ one-cell demo. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> * fix(sql-editor): move schema Edit table / View source to row right Put object actions on the trailing edge of each schema row instead of under the name, for tables/MQTs and scriptable objects alike. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> * fix(sql-editor): keep full Edit table / View source labels on row Restore the longer action labels with nowrap so they stay readable on the trailing edge of schema rows. Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
huyplb
marked this pull request as ready for review
July 29, 2026 00:22
Contributor
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ed4f9875-bc48-40fb-8650-488adba5e9a7) |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Jupyter-inspired notebook cells for the SQL Editor, Prettier for mixed SQL+JS, and a fix so JS/TS code cells get real syntax colors again.
Notebook cells
In [n]:, kind badge, ▶ per-cell Play viaexecute({ statementIndices })Out [n]: …Format / Prettier
-- @setinside fences before Prettier (samples were silently unformatted)JS highlighting fix
ensureFoxschemaSqlLanguagewrote__foxschemaSqlLanguageRegisteredonto the Monaco ESM export object →TypeError: Cannot assign…→ registration aborted → editor stayed on plain SQL (black/constuncolored)foxschema-sql+ embeddedtext/javascript/text/typescriptapply againJS keywords cyan after fix
Try it
-- @jscell)const/await/returnshould be cyan; strings greenTo show artifacts inline, enable in settings.