-
Notifications
You must be signed in to change notification settings - Fork 465
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
Move VS Code extension into compiler repo #6994
Comments
Sidenote: At some point the repo should probably just be called ReScript, or something else, because it is much more than just a compiler now. |
The VSCode extension doesn't seem to be monorepo friendly. https://code.visualstudio.com/api/references/extension-manifest#marketplace-presentation-tips |
IMHO it would be better to integrate the LSP feature into the compiler and leave the VSCode extension itself external. |
This is how gleam does it. You install it and their cli has a command to start the lsp server. |
I have one question: Currently, the LSP tooling calls OCaml components externally. These tools read artifact files from the |
@nojaf that's the gist of it yes. Essentially, whatever works on the compiler artifacts is what's in danger of breaking. That's currently the thing we call The language server itself isn't that important to move, but mid to long term the goal is to integrate that into the compiler repo and ship something like a command ( We still have to worry about all existing compiler versions that doesn't ship with its own language server. So, the current extension and analysis will need to remain in some form, regardless of whether we ship the compiler stuff. But that's a minor issue, we could hide that fairly well, and it'd rarely be updated. That has been my worry mostly, that we've been working so actively on the editor tooling and that locking improvements down to compiler versions means people on older versions don't get access to the improvements. But slowly we're getting to a state where that's more acceptable. |
I believe Additionally, providing new tooling benefits could motivate users to upgrade to the latest version of ReScript. |
OCaml sources (tools, analysis) were copied to the compiler repo. The JS part stays in the extension repo. |
Move the VS Code extension sources from https://github.com/rescript-lang/rescript-vscode into the compiler repo so that they can be maintained together and binary compatibility is ensured (see e.g. #6979 (comment)).
The text was updated successfully, but these errors were encountered: