跳到正文

Kotlin LSP 版本记录

JetBrains · JetBrains 的 Kotlin 语言服务器 Alpha 版,为 LSP 编辑器提供由 IntelliJ 驱动的补全、诊断、重构及 JVM 构建系统支持。

Cask开发工具 3,556
主页
安装命令
brew install --cask kotlin-lsp
近 30 天安装
542
App榜第 483
近一年安装
2,861
365 天累计
最新版本
271.3588.0
下载大小
366MB
sit
更新节奏
每周
近 30 天 4 个版本
  1. 271.3588.0
  2. 271.2085.0
  3. 263.7084.0

    OpenNavo 编辑 Homebrew 收录

    改进 Kotlin 调试:Step Over 与 Step Into 可在 with、let、also 等作用域函数内工作;调试启动配置时支持协程异步堆栈,包括 Gradle 启动配置,并包含其他小幅修复。

    改进 Kotlin 调试:Step Over 与 Step Into 可在 with、let、also 等作用域函数内工作;调试启动配置时支持协程异步堆栈,包括 Gradle 启动配置,并包含其他小幅修复。

    Source

  4. 263.6379.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增变量提取和局部变量内联重构,改进文件与包移动及调试器行为,修复 Gradle 和 Maven 导入问题,并优化索引与诊断。

    LSP 功能
    新增“提取变量”和“内联局部变量”重构。改进多个 Kotlin 文件和包的移动功能。悬停在有界类型参数上时显示其上界。
    构建
    Gradle 导入时检测正确的 Java 语言版本。从 settings.xml 读取 Maven 凭据。
    性能
    优化索引调度并加快大文件诊断。将检查移至单独的线程池。

    v263.6379.0

    更新日志

    🛠 LSP 功能
    • Kotlin 新增重构功能:“提取变量”和“内联局部变量”。 <!-- LSP-566, LSP-845 -->
    • 改进了 Kotlin 文件移动功能。现在可以一次移动多个包、多个文件和多个包。重构步骤失败时会显示错误消息。 <!-- LSP-1835, LSP-1832, LSP-1833, LSP-1846, LSP-1298, LSP-1852 -->
    • 悬停在有界类型参数上时,现在会显示上界(例如 T : Any)。 <!-- LSP-759 -->
    🐞 运行与调试
    • 调试器支持“Dump threads”请求。 <!-- LSP-1750 -->
    • 调用堆栈现在会显示库中的隐藏栈帧。 <!-- LSP-1792 -->
    • 调试器不再为 final 变量提供“设置值”选项。 <!-- LSP-1182 -->
    • Gradle 启动初始化脚本现在可在 Gradle 6 上编译。 <!-- LSP-1871 -->
    📦 导入与构建系统
    • Gradle 导入现在可检测正确的 Java 语言版本。 <!-- LSP-1732 -->
    • Maven 导入会从 settings.xml 读取凭据。 <!-- LSP-1814 -->
    🚀 性能
    • 库和 SDK 源码的索引启动时间延后,大文件的诊断速度更快。 <!-- LSP-1056, LSP-1749, LSP-1905 -->
    • 检查计算现在在单独的线程池中执行,可防止其他请求阻塞。 <!-- LSP-1858 -->
    🐛 错误修复
    • 修复了包目录缓存中的 NullPointerException 问题。 <!-- LSP-1811 -->
    • 还进行了许多其他小幅改进和错误修复。

    官方来源:https://github.com/Kotlin/kotlin-lsp/releases/tag/kotlin-lsp/v263.6379.0 Homebrew 证据:https://formulae.brew.sh/api/cask/kotlin-lsp.json

  5. 263.4702.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增 Kotlin 意图、运行/调试代码镜头、实时模板、文件移动和多项目导入;改进构建同步、索引与调试。扩展现在要求选择区域和数据共享选项。

    v263.4702.0

    更新日志

    [!NOTE] 「Kotlin by JetBrains」现已上架 Open VSX Registry。 您可以在 Cursor、VSCodium 及其他 VS Code 分支版本中安装。 <!-- LSP-1425, LSP-1227 -->

    JetBrains 还发布了「Java and Kotlin by IntelliJ IDEA」,同时支持这两种语言。 如果系统中已安装「Kotlin by JetBrains」,安装此扩展时会提示您移除该扩展。 这是正常行为。不能同时运行两个语言服务器。 <!-- LSP-1422 -->

    了解详情:https://www.jetbrains.com/help/intellij-vscode/About-instance.html。

    [!IMPORTANT] 扩展首次启动时,现在会要求您选择区域和数据共享选项。 在您完成这两项选择之前,语言服务器不会启动。 之后可在 VS Code 设置中更改。 <!-- LSP-1344, LSP-550, LSP-1424 -->

    🛠 LSP 功能
    • IntelliJ Kotlin 插件中的大多数 Kotlin 意图现已在 Kotlin LSP 中提供。 <!-- LSP-569 --> <!-- LSP-157, LSP-1216, LSP-1255, LSP-1403, LSP-1753, LSP-1624 -->
    • Kotlin main 函数上方的代码镜头现可用于运行或调试该函数。 <!-- LSP-1321, LSP-1323 -->
    • 「整理导入」现已作为源代码操作提供。 <!-- LSP-1212 -->
    • Kotlin 现已支持实时模板补全(例如 main、sout 或 if)。 <!-- LSP-1622 -->
    • 现在可以移动 Kotlin 文件,同时在其他文件中保留正确的导入和引用。 <!-- LSP-1319 -->
      • 暂不支持移动整个文件夹。
    • 工作区符号搜索现在也能找到库中的符号。 <!-- LSP-1179 -->
    • 新增状态栏小组件,可显示服务器状态并允许您重启服务器。 <!-- LSP-1170 -->
    🐞 运行与调试
    • 扩展会读取 launch.json,并可启动 JVM 应用程序。 <!-- LSP-1207, LSP-1051 -->
    • 调试控制台现已支持补全。求值不再停留在「Collecting Data」状态。 <!-- LSP-1304, LSP-451 -->
    📦 导入与构建系统
    • 现在可以从单个工作区导入多个项目。intellij.projects 设置会列出每个项目及其构建系统和路径。适用于单体仓库,以及包含多个独立项目的目录。了解详情: https://www.jetbrains.com/help/intellij-vscode/Project-import.html。 <!-- LSP-960, LSP-1302 -->
    • 编辑并保存构建脚本后,工作区现在会自动重新加载。新增设置用于控制重新加载方式:始终重新加载、先询问或从不重新加载。还新增了「重新导入项目」和「清除缓存并重启」命令。
    • Gradle 同步现在默认会下载库的源代码,因此可以在库中查找源代码。首次同步耗时会更长。 <!-- LSP-1192 -->
    • 服务器使用 Gradle Tooling API 9.5.0。 <!-- LSP-1095 -->
    • 未设置 JAVA_HOME 时,Gradle 导入会使用语言服务器的 JRE。Maven 导入现在会遵循 intellij.projects 设置中的 java-home 条目。 <!-- LSP-1148, LSP-1497 -->
    • Maven:导入器会遵循编译器参数,并已消除多余的 jar 警告。Maven 导入现可在 Windows 上运行。 <!-- LSP-940, LSP-489, LSP-1560 -->
    • 改进了多根工作区的导入。项目根目录包含多个构建系统时,扩展也会通知您。 <!-- LSP-1409, LSP-1407, LSP-1615 -->
    • 索引现在会以百分比显示进度。 <!-- LSP-1256, LSP-883 -->
    • 构建工具的输出会显示在单独的 VS Code 输出通道中。 <!-- LSP-679 -->
    • 项目中的任意位置存在构建文件时,扩展现在会自动激活。 <!-- LSP-1000 -->
    ⌨️ 编辑器与输入
    • 改进了字符串模板中的回车键处理。按回车不再插入错误的字符串拼接内容。 <!-- LSP-1141, LSP-1367, LSP-1391, LSP-1392 -->
    • 「切换行注释」操作已恢复正常。 <!-- LSP-1176 -->
    🚀 性能
    • 索引速度更快,项目导入期间及之后的卡顿更少。本地检查也运行得更快。 <!-- LSP-115, LSP-1235, LSP-1248, LSP-278 -->
    🐛 错误修复
    • 导入 Android Gradle 项目时不再因 ClassCastException 而失败。修复了 https://github.com/Kotlin/kotlin-lsp/issues/243。 <!-- LSP-1561 -->
    • Windows:分析器数据库已从漫游配置文件移至 %LOCALAPPDATA%。修复了 https://github.com/Kotlin/kotlin-lsp/issues/215。 <!-- LSP-1004 -->
    • 服务器现在会关闭其打开的 JAR 文件对应的操作系统文件句柄。 <!-- LSP-244 -->
    • 服务器现在使用 VS Code 的代理设置。 <!-- LSP-1532 -->
    • 还有许多其他小改进和错误修复。

    官方发行版:https://github.com/Kotlin/kotlin-lsp/releases/tag/kotlin-lsp/v263.4702.0

    Homebrew 版本信息:https://formulae.brew.sh/api/cask/kotlin-lsp.json

  6. 262.9593.0

    展开

    OpenNavo 编辑 Homebrew 收录

    基于 v262.8190.0 的次要版本,捆绑 Kotlin by JetBrains 扩展 v0.0.6。官方发布说明引用了之前的更新日志,未提供此构建特有的其他变更详情。

    v262.9593.0

    更新日志

    [!NOTE] 这是基于 v262.8190.0 的小版本更新。近期变更请参阅该版本的更新日志。

    官方发布: https://github.com/Kotlin/kotlin-lsp/releases/tag/kotlin-lsp/v262.9593.0

    Homebrew 版本依据: https://formulae.brew.sh/api/cask/kotlin-lsp.json

  7. 262.8190.0
  8. 262.7569.0
  9. 262.4739.0
  10. 262.2310.0
  11. 262.1817.0
  12. 262.1668.0
  13. 261.13587.0
  14. 3.7084.0

    展开

    GitHub Release

    v263.7084.0

    Changelog

    🐞 Run & Debug
    • Step Over and Step Into now work inside Kotlin scope functions, such as with, let, and also.
    • Async stack traces for coroutines are now available when you debug a launch, also for a Gradle launch configuration.
    🐛 Bug fixes
    • Various small improvements and bug fixes.
  15. 3.6379.0

    展开

    GitHub Release

    v263.6379.0

    Changelog

    🛠 LSP capabilities
    • New refactorings available for Kotlin: "Extract variable" and "Inline local variable".
    • Moving Kotlin files is improved. You can now move packages, several files, and several packages at once. The refactoring shows an error message when a step fails.
    • Hover on a bounded type parameter now shows the upper bound (for example T : Any).
    🐞 Run & Debug
    • The debugger supports the "Dump threads" request.
    • Hidden frames from libraries are now visible in the call stack.
    • The debugger no longer offers "Set value" for final variables.
    • The Gradle launch init script now compiles on Gradle 6.
    📦 Import & build systems
    • Gradle import detects the correct Java language version.
    • Maven import reads the credentials from settings.xml.
    🚀 Performance
    • Indexing of library and SDK sources starts later, and the diagnostics are faster for large files.
    • Computing inspections is now done on a separate thread pool, which prevents other requests from stalling .
    🐛 Bug fixes
    • Fixed a NullPointerException in the package directory cache.
    • Many other small improvements and bug fixes.
  16. 3.4702.0

    展开

    GitHub Release

    v263.4702.0

    Changelog

    [!NOTE] "Kotlin by JetBrains" is now on the Open VSX Registry. You can install it in Cursor, VSCodium, and other VS Code forks.

    JetBrains also released "Java and Kotlin by IntelliJ IDEA", which supports both languages. If you install it while "Kotlin by JetBrains" is present, it offers to remove this extension. This is expected. Two language servers must not run at the same time.

    Find out more at https://www.jetbrains.com/help/intellij-vscode/About-instance.html.

    [!IMPORTANT] When the extension first starts, it now asks you to choose a Region and a Data Sharing option. The language server does not start until you choose both. You can change them later in the VS Code settings.

    🛠 LSP capabilities
    • Most of the Kotlin intentions from the IntelliJ Kotlin plugin are now available in Kotlin LSP.

    • Code lenses above a Kotlin main function now let you run or debug it.

    • "Organize Imports" is now available as a Source Action.

    • Live template completion now works in Kotlin (e.g. main, sout, or if).

    • You can now move Kotlin files while preserving correct imports and references in other files.

      • Moving entire folders is not supported yet.
    • Workspace symbol search now finds symbols in libraries.

    • A new status bar widget shows the server state and lets you restart the server.

    🐞 Run & Debug
    • The extension reads launch.json, and it can launch a JVM application.
    • Completion works in the debug console. Evaluation no longer stops at "Collecting Data".
    📦 Import & build systems
    • You can now import more than one project from a single workspace. The intellij.projects setting lists each project with its build system and its path. This covers a monorepo, and a directory that holds several independent projects. Find out more at https://www.jetbrains.com/help/intellij-vscode/Project-import.html.

    • The workspace now reloads automatically when you edit and save a build script. A new setting controls the reload. It can reload always, ask first, or never reload. New commands are also added: "Reimport Project" and "Clear Caches and Restart".

    • Gradle sync now downloads the library sources by default. This makes source lookup work in a library. The first sync takes more time.

    • The server uses the Gradle Tooling API 9.5.0.

    • Gradle import uses the JRE of the language server when JAVA_HOME is not set. Maven import now honors the java-home entry of the intellij.projects setting.

    • Maven: the importer honors the compiler arguments, and the spurious jar warnings are gone. Maven import works on Windows.

    • Better import of a multi-root workspace. The extension also tells you when the project root holds more than one build system.

    • Indexing now reports the progress as a percentage.

    • Build tool output goes to a separate VS Code output channel.

    • The extension now activates automatically when there is a build file somewhere in the project.

    ⌨️ Editor / typing
    • More Enter-key fixes in a string template. Pressing Enter no longer inserts an incorrect string concatenation.
    • "Toggle line comment" action works again.
    🚀 Performance
    • Faster indexing, and fewer stalls during and after the project import. The local inspections also run faster.
    🐛 Bug fixes
  17. 2.9593.0

    展开

    GitHub Release

    v262.9593.0

    Changelog

    [!NOTE] This is a minor release based on v262.8190.0. See its changelog for the recent changes.

  18. 2.8190.0

    展开

    GitHub Release

    v262.8190.0

    Changelog

    [!NOTE] This is a minor release based on v262.7569.0. See it's changelog for the recent changes.

    🐛 Bug fixes
  19. 2.7569.0

    展开

    GitHub Release

    v262.7569.0

    Changelog

    🎉 Extension is now published to the VS Code Marketplace

    [!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.

    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 https://github.com/Kotlin/kotlin-lsp/issues/190 and https://github.com/Kotlin/kotlin-lsp/issues/124.
    • Document URLs are now computed correctly for unsaved/orphan files. Potentially fixes https://github.com/Kotlin/kotlin-lsp/issues/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
    • :rocket: Completion and auto-import performance improvements, including a fix for the regression introduced by the RocksDB migration. Fixes https://github.com/Kotlin/kotlin-lsp/issues/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 https://github.com/Kotlin/kotlin-lsp/issues/104.
  20. 2.4739.0

    展开

    GitHub Release

    v262.4739.0

    [!NOTE] Kotlin by JetBrains is now available on the VS Code Marketplace. You can install the latest official release of VS Code Extension from there.

    Changelog

    🛠 LSP capabilities
    • Call hierarchy (textDocument/prepareCallHierarchy, callHierarchy/incomingCalls, callHierarchy/outgoingCalls) — invoke "Show Call Hierarchy" / "Show Incoming/Outgoing Calls" on a Kotlin function or property to see who calls it and which symbols it calls. Fixes https://github.com/Kotlin/kotlin-lsp/issues/143.
    • Code folding (textDocument/foldingRange) — Kotlin function and class bodies, blocks, imports, and multiline comments can now be collapsed in the editor.
    • Smart insertion of parentheses, braces, and quotes — auto-pairing and overtyping work for KDoc brackets, string templates, raw strings, generic angle brackets, when / lambda braces, and char literals.
    • File templates (IntelliJ-style) — newly created Kotlin files are generated from configurable templates that support predefined variables and conditional expressions. Templates are configured through VS Code settings.
    🐛 Bug fixes
    :test_tube: Experimental features

    [!WARNING] The features listed in this section are not finalized.

    They may contain bugs and are likely to change significantly in future releases — do not depend on their current behavior.

    • Import of Android projects is now supported by Kotlin LSP :tada:
    • :bug: Debug Adapter Protocol (DAP) for Kotlin — attach to a running JVM, set line breakpoints, pause/resume, step over/in, inspect threads, stack frames, and variables, and evaluate simple expressions.
    Other
    • :rocket: Index storage migrated to RocksDB — more robust state management and better performance.
    • VS Code extension settings have been renamed from kotlinLSP.* to intellij.*.
    • New intellij.buildTool setting controls which build-system importer should be preferred.
    • :package: New bundling layout — use the bin/intellij-server executable to launch the standalone server. The legacy kotlin-lsp.sh launcher is deprecated and will be removed in future releases.
    • Standalone archives are now platform-specific: .sit for macOS, .tar.gz for Linux, and .zip for Windows.
    • stdio mode stability — the JVM's own stdout is now isolated from the LSP framing channel, so unexpected output from the JVM no longer corrupts the protocol stream.
    • :warning: Kotlin LSP now requires JDK 25 to run.
  21. 2.2310.0

    展开

    GitHub Release

    v262.2310.0

    Changelog

    [!IMPORTANT] This is the second hotfix release for v262.1668.0.

    The second fix is related to disabling faulty parts of a JVM DAP adapter (which is currently a WIP).

    The changelog below comes from the v262.1668.0 release and is repeated here for clarity.

    🔧 Kotlin 2.3.0 support
    🛠 LSP capabilities
    • Import of Maven projects is now supported
    • Import of Gradle projects is now more robust
    • "Go to Type Definition" (typeDefinition) for Kotlin symbols
    • "Go to Implementation" (implementation) for Kotlin symbols
    • New code actions are supported:
      • "Add names to call arguments"
      • "Specify type explicitly"
      • "Add import" quick fixes for unresolved references
    • New inspections from the IntelliJ Kotlin Plugin:
    • Compiler plugins like kotlinx.serialization and AllOpen are now fully supported
    ✨ UX improvements
    • "Go to Symbol" now works faster due to improved performance of "Workspace Symbols" requests
    • Distribution size has been reduced by > 30% (from 600 MB down to 400 MB)
    • Various other performance improvements
    🐛 Bug fixes
    • Fixed caret misplacement and exceptions after invoking code completion
    • Angular brackets are no longer highlighted as unmatched in the editor
    • Various memory leaks fixed
  22. 2.1817.0

    展开

    GitHub Release

    v262.1817.0

    Changelog

    [!IMPORTANT] This is a hotfix release for v262.1668.0.

    The fix is related to unexpected warnings being printed to STDIO at the start of the server. It disables them to avoid potential problems with different LSP clients.

    The changelog below comes from the v262.1668.0 release and is repeated here for clarity.

    🔧 Kotlin 2.3.0 support
    🛠 LSP capabilities
    • Import of Maven projects is now supported
    • Import of Gradle projects is now more robust
    • "Go to Type Definition" (typeDefinition) for Kotlin symbols
    • "Go to Implementation" (implementation) for Kotlin symbols
    • New code actions are supported:
      • "Add names to call arguments"
      • "Specify type explicitly"
      • "Add import" quick fixes for unresolved references
    • New inspections from the IntelliJ Kotlin Plugin:
    • Compiler plugins like kotlinx.serialization and AllOpen are now fully supported
    ✨ UX improvements
    • "Go to Symbol" now works faster due to improved performance of "Workspace Symbols" requests
    • Distribution size has been reduced by > 30% (from 600 MB down to 400 MB)
    • Various other performance improvements
    🐛 Bug fixes
    • Fixed caret misplacement and exceptions after invoking code completion
    • Angular brackets are no longer highlighted as unmatched in the editor
    • Various memory leaks fixed
  23. 2.1668.0

    展开

    GitHub Release

    v262.1668.0

    Changelog

    🔧 Kotlin 2.3.0 support
    🛠 LSP capabilities
    • Import of Maven projects is now supported
    • Import of Gradle projects is now more robust
    • "Go to Type Definition" (typeDefinition) for Kotlin symbols
    • "Go to Implementation" (implementation) for Kotlin symbols
    • New code actions are supported:
      • "Add names to call arguments"
      • "Specify type explicitly"
      • "Add import" quick fixes for unresolved references
    • New inspections from the IntelliJ Kotlin Plugin:
    • Compiler plugins like kotlinx.serialization and AllOpen are now fully supported
    ✨ UX improvements
    • "Go to Symbol" now works faster due to improved performance of "Workspace Symbols" requests
    • Distribution size has been reduced by > 30% (from 600 MB down to 400 MB)
    • Various other performance improvements
    🐛 Bug fixes
    • Fixed caret misplacement and exceptions after invoking code completion
    • Angular brackets are no longer highlighted as unmatched in the editor
    • Various memory leaks fixed
  24. 1.13587.0

    展开

    GitHub Release

    v261.13587.0

    Changelog

    🛠 LSP capabilities
    • Full support of inlay hints with a fine-grained configuration via jetbrains.kotlin.hints.* LS settings
    ✨ UX improvements
    • Zero-dependencies platform-specific builds -- no JDK required by default, the language server bundles its own
    • Code completion revamp: suggesting order is now on par with IJ and more relevant
    • Code completion latency is ~30% better
    • kotlinLSP.jdkForSymbolResolution option to specify JDK version that will be used as a dependency for symbol resolution
    • LS now checks JDK/Gradle versions compatibility and fails gracefully in the case of incompatible changes
    • Indicies are now stored in a dedicated folder and are properly shared between multiple projects and LS instances
    • All inspections and intentions are now using mod command which a more robust approach for LSP-like protocols
    Other
    • More indexing fixes on Windows
    • Smaller bundle size on every platform
    • Improved Gradle import performance
    • Better JDK selection for Gradle import when multiple options are present
    • Native filewatcher lib is now signed on OS X in release builds
    • Native filewatcher lib is now linked with libgcc statically
    • Compiler plugins support for JPS and .json-based imports