github Kotlin/kotlin-lsp kotlin-lsp/v262.7569.0
v262.7569.0

6 hours ago

v262.7569.0

Changelog

🎉 Extension is now published to the VS Code Marketplace

  • "Kotlin by JetBrains" is now available on the Visual Studio Code Marketplace, and can be installed to VS Code directly.
  • VS Code extension is now distributed under the JetBrains Free Plugin License instead of Apache 2.0.

Warning

"Kotlin by JetBrains" extension now has a different VS Code Marketplace ID:

Old one: jetbrains.kotlin

New one: jetbrains.kotlin-server

When you install a newer jetbrains.kotlin-server, a dialog will offer to uninstall the older jetbrains.kotlin extension, if present.

Example of the dialog. image

Accept it and reload the window — the new extension cannot properly activate while the old jetbrains.kotlin
extension is present.

🛠 LSP capabilities

  • Workspace model is now persisted across server restarts, which reduces cold-start time on subsequent launches of the same project.
  • New inspections from the IntelliJ Kotlin Plugin:
    • KTIJ-20597: Replace myMap.map { it.ket }.toSet() chains with direct call on myMap.keys.

📦 Import & build systems

  • More fine-grained progress reporting during project import in VS Code.
  • The Kotlin LSP document selector now also covers .java files in mixed Kotlin/Java projects, improving cross-language updates when Java files change.

⌨️ Editor / typing

  • Various Enter-key and auto-indent handling fixes — multi-line strings, multi-line comments, KDoc, class type parameter/argument lists, function parameter lists, and more.
  • Correct handling of CRLF line endings in document edits, bracket/parenthesis completion, and extra-line insertion.
  • Completion of multi-line comments.

🐛 Bug fixes

  • Kotlin languageVersion is now propagated from Gradle and Maven into the imported workspace, matching IntelliJ behavior.
  • Gradle import no longer throws NoSuchElementException when no JDK is configured — a clearer error is surfaced instead.
  • False positive REDUNDANT_ELSE_IN_WHEN diagnostic is addressed. Fixes #190 and #124.
  • Document URLs are now computed correctly for unsaved/orphan files. Potentially fixes #185.
  • Hover documentation links now use properly rendered URIs, fixing broken links on Windows and for project paths that contain spaces.
  • "Find References" of Kotlin type aliases is now supported.
  • Format Document now applies to files created from templates.
  • PROJECT_NAME interpolation in file templates is now resolved correctly.
  • Fixed the broken link to file_templates.md in extension settings.
  • Many other small improvements and bug fixes.

Other

  • 🚀 Completion and auto-import performance improvements, including a fix for the regression introduced by the RocksDB migration. Fixes #193.
  • The server now reports its log file location to the client on startup.
  • Background coroutine exceptions are now captured and reported properly in the server log.
  • .editorconfig files outside source roots are now honored.
  • Fix for serialization of empty/optional values when handling LSP requests. Related to #104.

Don't miss a new kotlin-lsp release

NewReleases is sending notifications on new releases.