Skip to content

feat: make IHTMLDataProvider async#199

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

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

Conversation

@KazariEX

@KazariEX KazariEX commented Mar 1, 2025

Copy link
Copy Markdown

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

KazariEX commented Mar 1, 2025

Copy link
Copy Markdown
Author

@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