fwcd / fwcd/kotlin-language-server

Duplicate import entries for code actions

Open
#592 0 comments 0 reactions 0 assignees View on GitHub
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):

![2024-08-23_09-21](https://github.com/user-attachments/assets/9291911b-ed1f-4d82-a4e5-f8f28e3a611d)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.