Skip to content

feat: make IHTMLDataProvider async #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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