STEPS TO REPRODUCE 1. Enable LSP-plugin. 2. install a language server, in my case: npm -g install typescript-language-server 3. make sure server is enabled. 4. open a file supported by the language server. in my case a .ts -file. 5. write "import { " and begin to type something until you see completion suggestions. 6. Select one and hit enter OBSERVED RESULT for example if I type: "import { take" and select from completion popup-menu "takeUntil [rxjs]" and hit enter I get: import { import { takeUntil } from 'rxjs';} It adds second "import" with extra { and }. EXPECTED RESULT import { takeUntil } from 'rxjs'; SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.109.0 Qt Version: 5.15.10
Can you try with latest Kate (23.08.3) ?
(In reply to Waqar Ahmed from comment #1) > Can you try with latest Kate (23.08.3) ? Seems that it's fixed in that version. There's still extra '}' at the end of line but noticed it's from setting "Automatically close brackets when opening bracket is typed". So when "{" is typed it already adds that "}" at right side of cursor which stays there after completion. Seems unexpected for me. Can be avoided by skipping typing that first "{" though.
> So when "{" is typed it already adds that "}" at right side of cursor These kinds of annoyances are still there, I will see if I can find a generic way to work around this issue. Thanks for testing and reporting the bug.