unisonweb / vscode-unison

Official Unison extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin calls ucm on Windows instead of ./ucm

bytesource opened this issue · comments

commented

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?

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.

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

commented

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