Post hero imagePost hero image

I released Aardink 0.10.0 on 16 November 2026. 0.9 filled in what a language server can put in and around the text. 0.10 is wider and flatter: more languages, the view options people reach for in VS Code, a better find, and the web’s providers in Monaco’s shapes. It also puts the editor’s speed under gates in CI, so it stays fast without me checking by hand.

Every new option is off or does what 0.9 did, with one exception: wordWrap on the web is now off, as it is in Monaco.

Upgrading

Most hosts only need a recompile. The things to check:

  • Web hosts that never set wordWrap get unwrapped lines. Pass wordWrap: 'on' to keep the 0.9 behaviour.
  • EditorCommand has a new SearchWorkspace member, so an exhaustive when needs a branch for it.
  • A wasm module built from the export template needs two new exports, aardinkRegisterFont and aardinkOnSearchWorkspace. Users of the npm package do not.
  • A Monaco theme with base: 'hc-black' or 'hc-light' now fills its gaps from the new high-contrast themes instead of Dark+ and Light+.

EditorOptions, EditorTheme, InlayHint, CodeAction, InlineCompletion, FindReplaceState, LanguageDefinition, and a few composables gained defaulted parameters. Source stays the same, but code compiled against 0.9 needs a recompile. docs/MIGRATION_0.10.md has the full list.

Twelve more languages

YAML, Properties, INI, Shell, Python, SQL, Java, Groovy (and .gradle), Dockerfile, Diff, SCSS, and LESS are now built in. Each one is a grammar plus a VS Code language-configuration.json, the same route 0.9 opened for grammar-only languages. Both are read on first use, so a host that never opens a Dockerfile never pays for one.

Some files have no extension worth matching on. LanguageRegistry.byFileName finds a language by the whole name:

registry.byFileName("Dockerfile") // Dockerfile
registry.byFileName(".bashrc") // Shell

A host that offers every built-in language now offers these too. Filter BuiltInLanguages.all if that is too many.

The existing languages got smarter as well. Enter in Markdown carries a list item, task, or quote on to the next line, and formatting lines up Markdown tables. CSS formats. Kotlin has hover and signature help for its standard library. HTML colours CSS inside <style> and JavaScript inside <script>.

View options

These are the settings people go looking for in the first five minutes:

EditorOptions(
    lineNumbers = LineNumberStyle.Relative,
    cursorStyle = CursorStyle.Block,
    indentGuides = true,
    bracketPairGuides = true,
    rulers = listOf(80, 120),
    smoothScrolling = true,
)

There is also cursorBlinking, scrollBeyondLastLine, cursorSurroundingLines, wrappingIndent, wordWrapColumn, and dragAndDrop. On the web they take Monaco’s names, so an existing Monaco options object mostly carries over.

Themes can now colour the editor’s chrome: the minimap, scrollbars, guides, rulers, cards, hints, lenses, and ghost text. Tokens can have a background. EditorThemes.HighContrastDark and HighContrastLight are new, with every token colour at a contrast ratio of 7:1 or better.

Find and replace

Find can search inside the selection and preserve case on replace, so replacing foo with bar turns Foo into Bar and FOO into BAR. The fields keep a search history and the replacement shows as a preview before it goes in.

Ctrl+Shift+F (Cmd+Shift+F on a Mac) runs EditorCommand.SearchWorkspace. The editor has no idea what a workspace is, so it hands the query to the host:

CodeEditorLayout(
    state = state,
    onSearchWorkspace = { query, options -> project.search(query, options) },
)

Without a handler the key goes to the host, as it did in 0.9.

Language features

  • Format on type, from a LanguageService, a language server, or a web provider.
  • CodeEditorState.refreshLanguageFeatures() and a server’s */refresh requests make the editor ask again.
  • LspLanguageService.willSaveWaitUntil lets a server edit the document before it is saved.
  • CodeAction.onApply runs a command or touches other files instead of only editing this one.
  • InlineCompletion.isSnippet makes ghost text a snippet, so Tab steps through its tab stops after accepting it.
  • Colour swatches are now drawn as inline content before the colour, using the layout work from 0.9.

Monaco’s shapes on the web

The web package now accepts providers in Monaco’s shapes for definition, references, formatting, signature help, code actions, rename, folding, on-type formatting, semantic tokens, and completion and code lens resolve. A host moving off Monaco can bring most of its providers across without rewriting them.

Providers run in a fixed order: the host’s, then a language server’s, then the base language’s.

The web also gained registerFont and fontFamily, and an editor in a registered font no longer downloads the bundled JetBrains Mono. hc-black and hc-light work as theme names.

Performance gates

Every release so far has had a “this was slow, now it is not” section. That is a sign the slowness got in unnoticed. 0.10 adds gates so it fails a build instead:

  • The wasm bundle has a ceiling of its recorded gzipped size plus 2%.
  • ./gradlew :editor:jvmPerfTest gates the JVM.
  • On Android, the sample ships a baseline profile, and CI compares each change against main on the same emulator.
  • The browser perf script gates hints and semantic tokens under --gate, and --profile records a CPU profile of the keys.

The gates found real problems on the way in. A partial highlighting pass for a registered or grammar-as-data language re-read the whole document for its line starts. Combined with a rule that gave up on partial passes after one slow one, every key on a 60,000-line file in the browser highlighted from the top: about 400 ms a key. The editor now gives up only after three slow passes in a row. That file spends a quarter of the time busy, and hints on the 5,000-line reference file settle in 30 ms at p95, down from 84 ms.

LspClient was parsing every response twice. It parses once now, and on the web it parses a large message in slices so the page can paint in between. The first 272 KB of semantic tokens used to hold the page for about 110 ms. It now arrives with no long task and a longest frame of 18.5 ms. The client also asks for semanticTokens/full/delta when a server supports it.

Tip

Everything the npm package loads is 15.0 MB, 5.2 MB gzipped, and 4.0 MB with Brotli. Serve .wasm with Brotli if your server or CDN can.

Known issues

On the web, a 60,000-line document with code lenses still takes about 400 ms to settle after a key, because 3,000 lenses are read in one frame once typing pauses. Typing itself is not held up. The editor also still asks for semantic tokens for the whole document rather than the lines on screen. 0.12 fixes that.

TypeScript colours a template literal as one string, ${} included, and CSS reads the .png in url(x.png) as a class. Bit of a letdown, but cosmetic.