Skip to content

Conversation

KazariEX
Copy link

@KazariEX KazariEX commented Mar 1, 2025

A common requirement is to send requests to the TS server to fetch tags, attributes or values. However, the current APIs do not support asynchronous operations, which forces us to use a quite dirty way to fetch asynchronous data:

https://github.com/vuejs/language-tools/blob/5ae4b381de01e3e9c0723fd4c5a74c1cbcc6ba78/packages/language-service/lib/plugins/vue-template.ts#L507-L522

https://github.com/vuejs/language-tools/blob/5ae4b381de01e3e9c0723fd4c5a74c1cbcc6ba78/packages/language-service/lib/plugins/vue-template.ts#L170-L185

This PR makes provideTags, provideAttributes and provideValues asynchronous, while also causing many other APIs to become asynchronous.

@KazariEX
Copy link
Author

KazariEX commented Mar 1, 2025

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant