Repository navigation
CodeAssist 3.21.0
🚀 CodeAssist 3.21.0
EDITOR COLORS
- The editor's colors are yours now. They used to be eighteen fields fixed in the theme, so "can I change the comment color" was simply no. A color scheme is now data: every attribute has a name, a group and a parent it falls back to, and you override only the entries you care about.
- A scheme you build by touching four entries stays four entries, and stays complete as the IDE learns to tell more constructs apart. A palette that has never heard of a suspend function still colors one, through
functionand thentext. - The scanners now emit what they were already walking past.
KEYWORDwas one bucket forif,funandprivate;PUNCTwas one bucket for braces, operators and commas;COMMENTcovered KDoc;STRINGcovered char and raw strings. Those are all separate now, and XML gained tag delimiters, theandroid:namespace prefix, entities, prologs and CDATA, while Markdown gained emphasis. - The analyzer already told a class from an interface from an enum, a member function from a constructor, a field from a property. The editor was collapsing all of it. It does not any more.
- Nothing looks different until you change something. Every new attribute inherits from the one it refines, asserted across both light and dark. What did change is the presets, which now say what their palettes always said: Solarized colors control flow apart from other keywords and operators apart from brackets, One and GitHub color operators, and all four give doc comments their own tone.
- Caret, selection, current line, gutter and diagnostics still follow your Material theme, Material You included, until a scheme pins them.
KOTLIN
- Around thirty fixes to how Kotlin code is understood, so the editor stops underlining code that is fine. Smart casts now survive a
while (x != null)loop, a barex as T, andx?.y ?: return. Typealiases resolve as themselves and as what they alias, including across files and on an extension's receiver. - Types nested in an object or a companion object are types, a nested sealed member counts as a subtype of what encloses it, and a declaration of your own shadows a built-in of the same name.
- Names resolve the way Kotlin resolves them: a member shadows a same-named top-level function, an in-scope top-level function wins over an out-of-scope one, and a member that happens to share a local's name is not a use of the local.
- Unsigned integer literals are typed as unsigned,
varargis part of an overload's signature,useworks on anyAutoCloseable, and a getter-only property gets a type. - Annotations after the first are no longer reported as a repeated modifier, and a
whencan initialize a variable. - New: an override whose
suspend-ness contradicts the function it overrides is flagged. - Fixed a hang on a file made of inferred declarations, where the analysis overflowed the stack.
PERFORMANCE
- A keystroke that stays inside one function body no longer reparses the file.
- The classpath reader stops reopening every jar when a name is not found.
EDITOR
- Expand selection moved off the JVM host, so every editor has it.
PLUGINS
- The published plugin SPI's binary surface is now pinned against a checked-in baseline, so a member a plugin can already call cannot quietly stop existing. It immediately found 42 members that an earlier refactor had broken without anyone noticing.
- Plugin API version is now
4. A plugin built against SPI 2.10.0 must be rebuilt; until then the IDE refuses it at load with the reason on its row, rather than letting it throwNoSuchMethodErrorthe first time you use it. - Syntax-tree node kinds are published constants. A plugin matching on code shape had to retype ids like
kt.argument_listby hand, and a typo compiled, installed and then matched nothing for ever, with no error anywhere.NodeKindand the per-languageKotlinNodeKinds/JavaNodeKinds/XmlNodeKindsnow ship in the SPI and are covered by the same baseline as everything else. - One pattern now works on Java and Kotlin. A string literal and a call's arguments used to have a different shape in each language, so a pattern about a call had to be written twice and one version was always silently wrong. They are the same shape now, and
DomPatternsgained call helpers (invocation("Color"),withArgument,asArgumentOf,stringLiteral) that absorb what genuinely does differ.
UNDER THE HOOD
- The platform, index and Kotlin symbol layers are now multiplatform, which is what lets the iOS host share them.
- iOS gained type-aware coloring and gutter markers for a type that has implementations.
- Kotlin 2.4.20.
Full changelog: https://github.com/tyron12233/CodeAssist/releases/tag/v3.21.0