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

            Bug ID: 462324
           Summary: [LSP plugin] typescript-language-server JSX props
                    auto-completion partially working
    Classification: Applications
           Product: kate
           Version: 22.08.3
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: arnaud.verg...@mailo.com
  Target Milestone: ---

Created attachment 154088
  --> https://bugs.kde.org/attachment.cgi?id=154088&action=edit
Autocomplete not suggesting props for a simple component

SUMMARY

When entering props for a JSX component (eg: when working with
react/react-native), the autocompletion does not show results reliably. For
simple components it seems to not show any props, but for larger components
from libraries I can use autocomplete for only some of them. I'll try to dig
more into this to maybe see a pattern.

STEPS TO REPRODUCE
1. Install typescript-language-server
(https://github.com/typescript-language-server/typescript-language-server)
2. Enable the Kate LSP plugin
3. Open a react/react-native project
4. Create a simple component accepting props
5. Create another component and render the previous component
6. Try to use auto-completion, see how the props are not suggested.

OBSERVED RESULT

The props are not suggested in the autocomplete popup, but the component
signature is shown in another popup (with the name of the props available). See
the attached screenshot.

EXPECTED RESULT

All props accepted by a JSX component should be suggested in the autocomplete
popup.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-1-MANJARO (64-bit)
ADDITIONAL INFORMATION

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

Reply via email to