Skip to content

Release: v1.17.0 — Quarto Autocomplete#41

Merged
Data-Wise merged 24 commits into
mainfrom
dev
Feb 22, 2026
Merged

Release: v1.17.0 — Quarto Autocomplete#41
Data-Wise merged 24 commits into
mainfrom
dev

Conversation

@Data-Wise
Copy link
Copy Markdown
Owner

Summary

  • Quarto autocomplete system: YAML frontmatter, chunk options, cross-references, code chunks
  • Context-aware LaTeX completions scoped to math mode, suppressed in code blocks
  • Fixed 70 TypeScript errors across 22 test files
  • Fixed DragRegion test mock using vi.hoisted() for dynamic imports
  • Documentation site sync: test counts, broken links, editor guide, changelog
  • Cargo.toml version alignment across all config files

Changes (21 commits since v1.16.3)

Features

  • feat(quarto): Code chunk completion and styling (R, Python, Julia, OJS, Mermaid)
  • feat(quarto): Autocomplete for YAML, chunk options, and cross-references

Fixes

  • fix(completions): Suppress LaTeX completions inside Quarto code blocks
  • fix(quarto): Fix codeChunkCompletions to use matchBefore properly
  • fix(quarto): Require #| prefix for chunk options
  • fix: Prevent migration loop by using dedicated version flag
  • fix(tests): Resolve 70 TypeScript errors across 22 test files
  • fix: Resolve 5 unrecognized relative links in site build
  • fix: DragRegion test mock with vi.hoisted for dynamic imports

Documentation

Test Plan

  • Full test suite: 2,187 passed, 0 failed (71 files)
  • mkdocs build --strict: 0 warnings
  • Version consistency: package.json, tauri.conf.json, Cargo.toml all at 1.17.0

Generated with Claude Code

Test User and others added 24 commits February 1, 2026 14:53
- Create PLANNING-CONSOLIDATED.md with verified implementation status
- Archive 12 brainstorm files to docs/archive/brainstorms/
- Archive 4 sprint files to docs/archive/sprints/
- Archive 4 completed implementation files to docs/archive/completed/
- Total: 20 files reorganized for clarity
- Move CLAUDE.md to docs/reference/ (AI assistant guidance)
- Archive 18 completed files to docs/archive/completed/
  - CI automation docs (5 files)
  - Testing/implementation docs (5 files)
  - Branch cleanup/analysis docs (4 files)
  - Overflow/checksum/phase3 docs (4 files)
- Move 2 proposals to docs/planning/
- Move keyboard nav and release docs to docs/development/
- Remove duplicate PROJECT-DEFINITION.md (already in docs/reference/)

Total: 31 root-level files organized
Sprint 1 Phase 1-3 implementation:
- Create quarto-completions.ts with completion functions
- YAML frontmatter keys (format, execute, bibliography, etc.)
- Chunk options (#| echo, eval, fig-cap, etc.)
- Cross-reference completions (@fig-, @tbl-, @eq-, @sec-)
- Document scanning for labels
- Integrate into CodeMirrorEditor autocompletion

Part of Quarto v1.15 feature set
24 test cases covering:
- YAML frontmatter detection and completions
- Code block chunk option completions
- Cross-reference label scanning and completions
- Integration tests for full Quarto document structure
The migration was checking if expandedIcon localStorage key exists,
but this key gets cleared during normal usage (when sidebar collapses),
causing the migration to run repeatedly.

Now uses a dedicated 'scribe:migrationVersion' key set to 'v1.16.0'
after successful migration to prevent repeated runs.
Prevents confusion with tags and markdown headings.
Single # is reserved for tags/headings.
- Add CODE_CHUNKS data with R, Python, Julia, OJS, Mermaid, Graphviz
- Add codeChunkCompletions() that triggers on backticks
- Add CSS styling for code blocks with distinct background
- Register codeChunkCompletions in editor

Note: Browser activation needs refinement - tests pass
Uses the same pattern as latexCompletions - matchBefore from cursor
position instead of regex on line text. Now properly triggers
autocomplete when typing backticks at start of line.
- Trim .STATUS from 1,835 to 120 lines (current state only)
- Archive full sprint history to docs/archive/STATUS-HISTORY-2025-2026.md
- Update 5 spec statuses to match implementation reality
- Move 3 implemented/stale planning docs to docs/archive/
- Update docs/planning/INDEX.md for Sprint 37

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ource file

- Fix type mismatches in mock objects (missing Note/Project/Theme/UserPreferences fields)
- Remove unused variables and imports (rerender, container, waitFor, vi, etc.)
- Fix wrong import paths (SidebarTabId from types → lib/preferences)
- Add missing vitest imports (beforeEach in GeneralSettingsTab, vi in LaTeX tests)
- Remove unused YamlCompletionOption interface and dead variable in quarto-completions.ts
- Widen string literal types in CodeMirrorEditor equality test
- Use type assertions for vi.fn mock assignments (DragRegion, ExportDialog)

tsc --noEmit: 0 errors (was 70)
vitest run: 2187 tests passing, 0 failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use doc.sliceString(0, pos) instead of doc.toString() in isInMathContext
  to avoid allocating entire document on every completion invocation
- Handle escaped \$ in math context detection
- Remove stale blank lines in IconBar test mock objects

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add Quarto Support section to features.md (completions, styling, scoping)
- Update editor docs from 2-mode HybridEditor to 3-mode CodeMirror 6
- Update test badge (2163 → 2187)
- Fix 12 dead links in planning/INDEX.md (files moved to archive)
- Fix MISSION-CONTROL-WALKTHROUGH path in mkdocs.yml and index.md
- Fix brainstorm link in SPEC-left-sidebar-redesign
- mkdocs build: 0 warnings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merge both versions: PR's active plans + specs table with dev's
archive directory table and fixed links.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix(tests): Resolve 70 TypeScript errors and clean up .STATUS
Runtime artifacts from branch guard hooks should not be tracked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update test counts (2163→2187) across 4 files, fix 4 broken relative
links in archived STATUS-HISTORY, add Quarto section to editor guide,
add [Unreleased] changelog entry for PR #40, and refresh CLAUDE.md
status to v1.16.2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…f.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Convert bare directory links to either code references or file links
so mkdocs --strict produces zero warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bump version across package.json, tauri.conf.json, Cargo.toml,
.STATUS, README.md, docs/index.md, CHANGELOG.md, and CLAUDE.md.
Fix DragRegion test mock (vi.hoisted for dynamic imports).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts:
#	.STATUS
#	docs/reference/CLAUDE.md
#	package.json
#	src-tauri/Cargo.lock
#	src-tauri/Cargo.toml
#	src-tauri/tauri.conf.json
@Data-Wise Data-Wise merged commit f100872 into main Feb 22, 2026
9 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