volarjs / volar.js

💙🌊
https://volarjs.dev/
MIT License
963 stars 47 forks source link

[bug]: duplicated results on intellisense #186

Closed icarusgk closed 15 hours ago

icarusgk commented 3 months ago

Description

When typing the name of a variable in <script>, an attribute or event handler in <template> or a selector in <style> the suggestions provided by Intellisense are duplicated.

I haven't noticed this issue in VS Code yet, but I have encountered it in the SFC Playground, Zed Editor, IDX Editor, and GitHub Codespaces.

Example:

Example

Workarounds

Refresh the SFC Playground with the already written code inside and the problem goes away.

icarusgk commented 2 weeks ago

Update: Zed has pinned @vuejs/language-server to version 1.8 due to this issue. https://zed.dev/docs/languages/vue

johnsoncodehk commented 15 hours ago

Fixed by https://github.com/vuejs/repl/commit/f9f650ada945f7ea597b7e7b51c132c4594bd5cb