unisonweb / vscode-unison

Official Unison extension for Visual Studio Code
MIT License
23 stars 4 forks source link

Plugin calls ucm on Windows instead of ./ucm #10

Closed bytesource closed 1 year ago

bytesource commented 1 year ago

Hi,

When opening a folder containing ucm with this plugin, a terminal opens inside VS Code running this code:

// Plugin just calls ucm on Windows, which fails:

ucm
bash: ucm: command not found

However, on Windows, I need to run ucm like this:

// This is what I did

./ucm
Now starting the Unison Codebase Manager (UCM)...

Is there a way to adapt the startup process, so that ./ucm is called on Windows?

ChrisPenner commented 1 year ago

Hi, yes I believe you can set the ucmCommand parameter in your language server settings to anything you like. It should appear in the VS Code settings for the unison LSP 😄

Alternatively I believe you could add your ucm executable to your Path.

ChrisPenner commented 1 year ago
image
ChrisPenner commented 1 year ago

Let me know if that doesn't work for you :)

bytesource commented 1 year ago

Now everything is working perfectly. Thanks for pointing me to this setting!