zigtools / zls-vscode

Deprecated, please use https://github.com/ziglang/vscode-zig
https://github.com/ziglang/vscode-zig
MIT License
85 stars 15 forks source link

Have to reinstall ZLS when using VSCode each time you switch between WSL and Windows #56

Open tristanisham opened 1 year ago

tristanisham commented 1 year ago

Zig Version

0.11.0-dev.231+476b94680

Zig Language Server Version

1.1.1

Steps to Reproduce

Use ZLS on Windows or WSL with VSCode, then switch to the other environment. ZLS will prompt you to install itself.

Expected Behavior

I expected ZLS to be installed in both environments after installing it on each and not prompting me to redownload it every time I switch windows.

Actual Behavior

Use ZLS on Windows or WSL with VSCode, then switch to the other environment. ZLS will prompt you to install itself.

SuperAuguste commented 1 year ago

Ah I actually figured it out!

Windows -> Linux: zls tries to run the Windows executable but it fails so it prompts for install and then switches the path to the Linux executable.

Same thing in the other direction. This is a design oversight.