fwcd / fwcd/kotlin-language-server
Duplicate import entries for code actions
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
When asking the lsp for code actions, I often get duplicate (or more) lines, like in the screenshot below (Neovim):

I reproduced it with VS Code as well.
## How to reproduce
1. Clone https://github.com/fwcd/kotlin-quick-start
2. Open https://github.com/fwcd/kotlin-quick-start/blob/main/src/test/kotlin/quick/start/AppTest.kt
3. Remove the import on line 7
4. Ask for code actions
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue using src/test/kotlin/quick/start/AppTest.kt from kotlin-quick-start: remove the import on line 7 and request code actions through the Kotlin language server. Compare the results in Neovim or VS Code, and consider the issue done when each import action is returned only once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, neovim, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100