You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely confident of the architecture of my setup, but I have SublimeText 4, with LSP-vue (3.5.0), LSP-eslint (2.1.0), and LSP-typescript (2.13.2). For the most part, everything is working nicely. And then I noticed an issue in a legacy project, and spent a good deal of time trying to work out what broke. Then I checked it out in our most recent project, which is running the latest version of all the frameworks, libraries, etc and see the same thing. And full disclosure, it was Claude that eventually suggested that, given where I got to, this was a bug with the language server. It may not be—hence asking for more help here.
If I go to the script block and type function h, I get the completion handleClick show up immediately, and all is well. However, if I change the props definition to a bare call:
The completion no longer shows up at all. In both cases, I see warnings in the template section that handleClick is undefined, so the server is clearly picking that up, but it doesn't offer it as a completion in the second case.
Is this a misconfiguration on my part? Or is it actually something not working as it should?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not entirely confident of the architecture of my setup, but I have SublimeText 4, with LSP-vue (3.5.0), LSP-eslint (2.1.0), and LSP-typescript (2.13.2). For the most part, everything is working nicely. And then I noticed an issue in a legacy project, and spent a good deal of time trying to work out what broke. Then I checked it out in our most recent project, which is running the latest version of all the frameworks, libraries, etc and see the same thing. And full disclosure, it was Claude that eventually suggested that, given where I got to, this was a bug with the language server. It may not be—hence asking for more help here.
The issue is visible in this simple sfc:
If I go to the script block and type
function h, I get the completionhandleClickshow up immediately, and all is well. However, if I change the props definition to a bare call:The completion no longer shows up at all. In both cases, I see warnings in the template section that
handleClickis undefined, so the server is clearly picking that up, but it doesn't offer it as a completion in the second case.Is this a misconfiguration on my part? Or is it actually something not working as it should?
Beta Was this translation helpful? Give feedback.
All reactions