https://bugs.kde.org/show_bug.cgi?id=474989

            Bug ID: 474989
           Summary: Autocompleting with LSP-plugin "import" (typescript)
                    expressions inserts second import with { and }
    Classification: Applications
           Product: kate
           Version: 23.04.3
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: henri...@posteo.net
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to