Skip to content

feat: Full web support#47

Merged
johnsoncodehk merged 16 commits into
masterfrom
web
Jun 2, 2023
Merged

feat: Full web support#47
johnsoncodehk merged 16 commits into
masterfrom
web

Conversation

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