kotlin-language-server
kotlin-language-server copied to clipboard
Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
Really missed this in the Kotlin language server after programming Rust (using rust-analyzer) for a while. Having the same variable highlighted is super useful 🙂 Fixes #208 ## Basic info...
_Extracted from https://github.com/fwcd/kotlin-language-server/pull/367#discussion_r969869742_ There was some discussion upstream (in the LSP repo) on encouraging servers to move to a pull-model where the server fetches configurations through `workspace/configuration` at startup instead...
I can't really tell when this happens, but quite frequently, some suggestions are simply missing. I am currently working on an Android project and I decided to use gson to...
Currently, the language server does not seem to respect smart casts. ```kotlin fun test() { class Test() { var qwe: Int = 5 } val asd = Test() val fgh...
I use coc-kotlin and if I include `"kotlin"` in the `coc.preferences.formatOnSaveFiletypes` setting, all diagnostics in the file disappear whenever I save and a formatting action takes place. If the code...
Auto-import is not working for top-level statements referring to external dependencies. ```kotlin @RestController class HelloController { @GetMapping("/hello") fun getHello(): Map { return mapOf(Pair("message","Hello world!")); } } ``` In the code...
to repro, clone this repo and open the directory in vscode: https://github.com/ThibaultBee/StreamPack Note: there is a gradle project. Note also: go to definition works. Note: red squiggles everywhere, all with...
Full log follows: [lsp.log](https://github.com/fwcd/kotlin-language-server/files/13941394/lsp.log) This is happening after a clean build (and trying to use it with nvim, using lspconfig). Worth noting that just running the server outside of nvim...
Added the following options for ktfmt: - `kotlin.formatting.formatter`: Can be `ktfmt` (default) or `none` (to disable the formatter) - `kotlin.formatting.ktFmt.style` - `kotlin.formatting.ktFmt.indent` - `kotlin.formatting.ktFmt.maxWidth` - `kotlin.formatting.ktFmt.continuationIndent` - `kotlin.formatting.ktFmt.removeUnusedImports`
- ci: add java21 support - deploy: use java17 (same as dockerfile) --- relates to https://github.com/fwcd/kotlin-language-server/issues/550