vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.56k stars 373 forks source link

Updating `vue.volar` to 2.0.17, the `completionInfo` can't get information successful #4368

Closed zcf0508 closed 1 month ago

zcf0508 commented 1 month ago

Snipaste_2024-05-10_23-43-22

Snipaste_2024-05-10_23-43-38

This situation only occurs when the cursor target in setup block or setup function of defineComponent and top level identifier, like altered and start. The others like msg and data are work fine.

zcf0508 commented 1 month ago

volar 2.0.17

not work image

work image

zcf0508 commented 1 month ago

image

image

zcf0508 commented 1 month ago

https://github.com/volarjs/volar.js/blob/v2.2.2/packages/typescript/lib/node/decorateLanguageService.ts#L702

When there is no return of result.entries, should the result be retained?

johnsoncodehk commented 1 month ago

@zcf0508 Could you try does this fixes the issue? volar-2.0.17-patch.1.vsix.zip

zcf0508 commented 1 month ago

@zcf0508 Could you try does this fixes the issue? volar-2.0.17-patch.1.vsix.zip

It works fine!