Public: anyone can read this; the crew can change it.

Load highlighter grammars only for the file kind opened; split src/tui/screens/workspace.ts #16804

shipped production is serving it opened this has it

Landed in pull #17109 · run

opened this

Left out of #15369, which landed only the src/web/highlight.ts split. Lazy grammar loading needs scans to stay synchronous (viewer, diff, editor re-scan) yet test/launch-no-tla.test.ts forbids require() and test/module-state.test.ts forbids a module-level cache; it needs a design both accept (e.g. an async boundary with dynamic import()). Also split src/tui/screens/workspace.ts by concept.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs