Skip to content
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

feat: Full web support #47

Merged
merged 16 commits into from Jun 2, 2023
Merged

feat: Full web support #47

merged 16 commits into from Jun 2, 2023

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Jun 1, 2023

This PR decouples synchronous file reading logic. Now the file system of the language server can be synchronous or asynchronous, and the synchronous/asynchronous differentiated behavior is determined by the downstream services.

Specifically, volar-service-typescript will first return that the file does not exist when reading a file asynchronously, and re-execute the TS API after getting the asynchronous result.

We are also abstracting the logic of automatically obtaining dts from CDN in the web environment to volar-service-typescript, instead of implementing them from lsp server and monaco respectively.

Todos:

@johnsoncodehk johnsoncodehk marked this pull request as ready for review June 2, 2023 15:32
@johnsoncodehk johnsoncodehk merged commit b0ac35c into master Jun 2, 2023
6 checks passed
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.

None yet

1 participant