-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Integrate Volar #340
Integrate Volar #340
Conversation
- Volar handles the mapping between TypeScript and LSP. - Volar handles the mapping between TypeScript and Monaco editor. - Volar manages virtual files. - Volar imports TypeScript directly. As a result, the Monaco editor integration now requires `path` to be polyfilled. - It is no longer possible to pass compiler options in the Monaco editor integration. - This adds editor features for YAML based on `yaml-language-server`. This has been contributed upstream to Volar and is pending review. - Markdown features are now handled by `vscode-markdown-languageservice`. This will be contributed upstream to Volar soon. - Markdown definitions are broken due to a bug in Volar. - This adds `remark-frontmatter` with TOML and YAML support as well as `remark-gfm` by default unless specified otherwise in `tsconfig.json`. - The language server now requires `typescript.tsdk` to be passed via initialization options. - This adds support for debugging virtual documents using Volar labs. Closes #168 Closes #284 Closes #295 Closes #298 Closes #301
🦋 Changeset detectedLatest commit: b7186e4 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I’m inclined to make some structural changes.
Any thoughts on this @mdx-js/members @johnsoncodehk? |
A small thing is that when users integrates The rest of it looks great! |
`yaml-language-server` has problematic dependencies.
This removes its dependencies on `volar-service-markdown` and `volar-service-typescript`. This logic was moved into `@mdx-js/language-server`.
The only thing that still needs to happen is verify our supported Node.js version matches Volar’s. Most of the unified ecosystem supports Node.js 16, which is already EOL. I recall Volar requires Node.js 18+, which means the language server would too. |
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
I just got confirmation Volar supports Node.js 16+, so this PR is ready as-is. I want to merge this soon, but I want to wait for MDX 3 for the release. |
Congratulation first!
Is there any news about MDX 3? I haven't noticed about it. |
MDX 3 is a new major upgrading unified and remark, with new parser fixes and improved node types. Version 3 is planned for release this week. |
MDX 3 won’t as big a change as MDX 2. It’s mostly a lot of small changes that are technically breaking, but don’t affect most users. |
Co-authored-by: Johnson Chu <johnsoncodehk@gmail.com> Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
Released in |
Currently the build is failing, because pretty much every package related to VSCode has incorrect package exports.
path
to be polyfilled.This adds editor features for YAML based onThis has a problematic indirect dependencyyaml-language-server
.vscode-json-languageservice
.vscode-markdown-languageservice
. This will be contributed upstream to Volar soon.remark-frontmatter
with TOML and YAML support as well asremark-gfm
by default unless specified otherwise intsconfig.json
.typescript.tsdk
to be passed via initialization options.Closes #168
Closes #284
Closes #295
Closes #298
Closes #301
Closes #341