-
-
Notifications
You must be signed in to change notification settings - Fork 3
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: mvp zed extension going #75
Conversation
packages/hdx_zed/src/lib.rs
Outdated
&zed::LanguageServerInstallationStatus::Downloading, | ||
); | ||
|
||
zed::download_file(&asset.download_url, "bin", zed::DownloadedFileType::Zip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we have the release assets going, this line may need to change a tad. As in is it bin/binary-platform-arch
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing! Couple of small things:
@@ -96,13 +96,14 @@ jobs: | |||
BIN_NAME=hdx-${{ matrix.code-target }} | |||
mv target/${{ matrix.target }}/release/hdx $BIN_NAME | |||
|
|||
- run: chmod +x hdx-* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed zed::make_file_executable
in the extension, which we don't need to do; if we chmod +x
the binary.
I believe these file modes are transfered through the assets; but wasnt too sure so kept the zed fn api to +x
it.
Get's a Zed Extension impl going. Where the LSP is downloaded from GitHub release assets.
Even though Zed extensions are Rust projects, we shouldn't include that as part of our
hdx
workspace. Furthermore, we should treat the lsp as external, and not try to compile our lsp directly within the extension wasm.The
lsp
location is resolved through either;HDX_SERVER_PATH
(which is the same as the VSCode one)