vuejs / language-tools

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

feat(language-service): better sorting & filtering of completion #4671

Closed KazariEX closed 2 months ago

KazariEX commented 3 months ago

fix #4670

johnsoncodehk commented 3 months ago

@KazariEX Could you add a minimal test case?

KazariEX commented 3 months ago

I have revised this PR and now it will do the following in the completion:

pkg-pr-new[bot] commented 2 months ago

commit: 37e534e

vue-component-meta

``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-meta@4671 ```

vue-component-type-helpers

``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@4671 ```

@vue/language-core

``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-core@4671 ```

@vue/language-plugin-pug

``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@4671 ```

@vue/language-server

``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-server@4671 ```

@vue/language-service

``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-service@4671 ```

vue-tsc

``` pnpm add https://pkg.pr.new/vuejs/language-tools/vue-tsc@4671 ```

@vue/typescript-plugin

``` pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@4671 ```

Open in Stackblitz

johnsoncodehk commented 2 months ago

I'm a bit unsure of the best way to display for DX so show all items if possible, glad you have insights on this. 👍