Repository navigation
CodeAssist 3.22.0
🚀 CodeAssist 3.22.0
PERFORMANCE
- Typing is smoother, most of all on low-end phones. On an emulated 1 GB Android 8 phone, typing in a 400-function Kotlin file went from about one janky frame in four to about one in thirty.
- Completion no longer waits behind the analysis it interrupted. Every keystroke used to queue a full pass (diagnostics, highlighting, hints, the lightbulb) ahead of the next completion request. Completion now cuts in, a pass made stale by the next keystroke stops instead of running to the end, and the lightbulb waits until the caret rests.
- A keystroke inside a function body now parses only that body. The rest of the file is carried over from the previous parse. On a very large file this took parse work per keystroke from about 13 MB of memory and 11 ms to about 3 MB and 5 ms.
- Much less memory per keystroke in the Kotlin checks. Several of them walked the whole file on every edit. They now reuse what they found in the parts you did not touch. On a 1200-function file, diagnostics went from about 27 MB and 50 ms per keystroke to about 1 MB and 6 ms.
- Inlay hints are computed for the lines on screen and reused per declaration, and highlighting and hints are re-binned per edited line instead of per file.
- The editor draws less per frame: completion filtering is memoized, diagnostic chips and matching-bracket marks are drawn only where visible, and the bracket and token scans read the text in place instead of copying it.
LOW-MEMORY DEVICES
- New Low memory mode in Settings > Build Runtime (Auto, On, Off). It uses smaller caches, skips background warm-ups, and frees memory when the IDE leaves the screen, so the system is less likely to close it. Auto turns it on for devices with little memory.
- The IDE's caches are bounded and released under memory pressure, and the Kotlin compiler is warmed only in the process that actually compiles.
- The app ships a current baseline profile, so its hot paths start precompiled.
ANALYSIS
- Project-wide checks from plugins now run. A plugin's project analyzer was never actually called. It now runs a short while after you stop typing, and its findings show up in every open file it reports on.
- A plugin's analyzers are held to a time budget, so a slow one can no longer hold up the compiler's errors.
EDITOR
- Copy all on the Problems and Log tabs, and pasting into the editor prefers plain text over rich text.
UI
- The AI chat is restyled on Material 3 and follows your Material You colors like the rest of the IDE.
- Arabic is set in a bundled typeface that matches the Latin text beside it, and icons that point along the reading direction are mirrored in right-to-left layouts.
- Overflow and context menus now share one row layout, so their icons, labels and checkmarks line up.
- Back returns to the screen you came from in the store, instead of jumping to its top level.
FIXES
- Fixed the most widespread crash: a list that repeated an item's key took the whole screen down.
- Fixed a crash while reading a library jar that changed underneath an index build.
- An unreadable projects folder or settings file no longer crashes the app at start.
- A project with a damaged manifest no longer shows an error dialog over and over on the home screen.
- A signed-in store session no longer expires after an hour of use.
- A refresh no longer blanks the project icons already on screen, and store charts show each project's own icon.
- Settings export now works on a device.
- Compose preview: an enum entry named like a
java.langclass (for exampleSystem) is now the entry. - Layout preview: a layout in a qualified folder such as
layout-landpreviews itself, not its unqualified sibling.
PLUGINS
- Installed plugins can subscribe to the IDE's lifecycle events: editor sessions, builds, runs, analysis results, the open project and indexing (SPI 2.8.0).
- A plugin's UI can resolve its own services, so its two halves no longer need a static to share state.
- Contributed screens take part in back navigation (SPI 2.9.0).
AI
- The agent's prompt caching now actually pays off. History compaction used to rewrite the cached part of the conversation on every step, so each request paid full price for the whole transcript.
Full changelog: https://github.com/tyron12233/CodeAssist/releases/tag/v3.22.0