github Kotlin/kotlin-lsp kotlin-lsp/v271.3588.0
v271.3588.0

46 minutes ago

v271.3588.0

Changelog

🛠 LSP capabilities

  • "Surround With" is now available for Kotlin expressions and statements.
  • The Safe Delete code action is now available for Kotlin declarations. See IDEA-394402.
  • Set intellij.completion.caseSensitivity to none for case-insensitive completion. Restart the server to apply the setting.
  • Go to Definition and hover now work inside decompiled library classes.
  • KDoc parameter, return, and exception sections now appear as Markdown in hover, completion, and signature help.
  • The Kotlin outline now includes local functions, local classes, and object literals.
  • Workspace symbol search accepts Class.member queries and qualified names from Copy Reference.
  • The server imports project inspection profiles by default, including settings for shared file scopes.
  • Inspection settings refresh when you edit a project profile, including unsaved edits.
  • An inspection warning offers a menu to suppress or disable the inspection. Supported inspections also let you edit their options.
  • "Go to Test" and "Go to Test Subject" navigate between Kotlin code and its tests.

📦 Import & build systems

  • Analysis uses the Gradle toolchain JDK or the configured Maven JDK instead of an unrelated detected JDK.
  • Gradle import can use JDKs known to the server, including on Windows ARM64.
  • Gradle import handles isolated projects when an included build has subprojects. See LSP-2156.
  • Maven import keeps source and resource directories beside a module directory.
  • Relative paths in intellij.projects resolve from the directory of the configuration file.
  • Maven import excludes dependency types that do not belong on the class path.

🐞 Run & Debug

  • Breakpoints can suspend one thread or all threads in clients that support breakpoint modes.
  • For local sessions, console: externalTerminal opens an operating system terminal window.
  • java.test.config supports environment files, a Java executable, encoding, extra class paths, module paths, and tasks before and after a run.
  • Stack trace links in run and test output navigate to a more precise location in Kotlin code.
  • Restart Frame works inside try/finally blocks and reports when a frame cannot restart.
  • The Debug Console shows debugger messages, including when another thread reaches a breakpoint.

🚀 Performance

  • The server avoids repeated imports when file watcher events are lost and the build scripts have not changed.

🐛 Bug fixes

  • False positive "Function name should start with a lowercase letter" inspection for @Composable functions is fixed. See LSP-920, #176, and #191.
  • Diagnostics wait for the initial import and indexing to finish, then refresh automatically.
  • Inlay hints and code lenses refresh after indexing finishes.
  • Clients that pull diagnostics refresh other open files after a document changes.
  • Call Hierarchy finds calls to local Kotlin functions.
  • Refactorings ask for confirmation when they find conflicts before applying changes.
  • Find References reports the reference name instead of the whole qualified expression.
  • Adding or removing a workspace folder preserves the index entries of the other folders.
  • Lazy values in the debugger finish loading instead of showing an endless loading indicator.
  • A malformed selected inspection profile falls back to the default settings.
  • Code action notifications show plain text instead of raw HTML.
  • Moving Kotlin files or directories can now replace an existing destination, if selected.

Don't miss a new kotlin-lsp release

NewReleases is sending notifications on new releases.