feat(sql-editor): FoxScript AST, markers, virtual docs, semantic tokens - #125
Merged
Merged
Conversation
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>
…rtual 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>
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>
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>
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>
huyplb
marked this pull request as ready for review
July 29, 2026 00:20
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_d29fbb84-6447-448c-906b-e99d9b848f12) |
huyplb
added a commit
that referenced
this pull request
Jul 29, 2026
* feat(sql-editor): Jupyter-style notebook cells in Monaco 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> * fix(sql-editor): Prettier JS cells that contain -- @set 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> * fix(sql-editor): restore JS/TS colors inside -- @js cells 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> * docs(agents): note Monaco ESM flag broke JS cell highlighting Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com> * feat(sql-editor): FoxScript AST, markers, virtual docs, semantic tokens (#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> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
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
Introduces a FoxScript language spine on top of the existing SQL splitter / notebook cells (stacks on #124).
parseFoxScript/compileFoxScriptPlan) — composessplitSqlStatements+checkStatement(no second scanner)foxscriptlanguage (keeps legacyfoxschema-sql) with shared Monarch fence highlighting@end/return/ incomplete SQLlast/vars/sqlhover + completionsschemaCachein SQL blocksexecutepathsOut of scope
@pythoncells / “never execute raw source”Test plan
vitest— 614 passed (includes newfoxscript-asttests)tsc --noEmitforapps/web-- @endshows marker; hoverlastinside-- @js; schema-loaded table names tint in SQL blocks