You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that findNvim can support this without much complexity, by accepting changing paths: string[] to paths: string[][], so that consumers can pass a command like:
The missing piece is that consumers like vscode-neovim/vscode-neovim#2287 can't send a full command which represents "nvim". It can only send a location (arg0) or directory.
node-client doesn't need to know about WSL, it just needs to run what the consumer gives it. Currently the consumer can only send arg0, but we can fix that by allowing consumers to send [arg0, arg1, ...].
Activity
[-]Support finding nvim in the WSL[/-][+]findNvim: support finding nvim in Windows WSL[/+]justinmk commentedon Oct 19, 2024
Ok, I see that this blocks vscode-neovim/vscode-neovim#2287 .
https://github.com/vscode-neovim/vscode-neovim/blob/c3e8387a9e9f923ec39c28af6cb8985ca431e438/src/main_controller.ts#L181-L186
I think that
findNvim
can support this without much complexity, by accepting changingpaths: string[]
topaths: string[][]
, so that consumers can pass a command like:Perhaps in the future,
findNvim
could be more clever and do this internally. But meanwhile this is a simple change.gjf7 commentedon Oct 21, 2024
Should we search wsl's $PATH?
justinmk commentedon Oct 21, 2024
We could try that in the future, but I think just changing the current
paths: string[]
to acmds: string[][]
solve the main problem for now.gjf7 commentedon Oct 21, 2024
I'm not sure I follow. What should
findNvim
actually return in this case? The full WSL command, or just thenvim
path?justinmk commentedon Oct 21, 2024
The missing piece is that consumers like vscode-neovim/vscode-neovim#2287 can't send a full command which represents "nvim". It can only send a location (
arg0
) or directory.node-client doesn't need to know about WSL, it just needs to run what the consumer gives it. Currently the consumer can only send
arg0
, but we can fix that by allowing consumers to send[arg0, arg1, ...]
.justinmk commentedon Oct 21, 2024
I have a PR that I'll post in a minute. #432
gjf7 commentedon Oct 21, 2024
Ah, I see.