Skip to content

feat: make IHTMLDataProvider async#199

Open
KazariEX wants to merge 1 commit intomicrosoft:mainfrom
KazariEX:feat/async-html-data-provider
Open

feat: make IHTMLDataProvider async#199
KazariEX wants to merge 1 commit intomicrosoft:mainfrom
KazariEX:feat/async-html-data-provider

Conversation

@KazariEX
Copy link
Copy Markdown

@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
Copy Markdown
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