I would like to improve on the first-install experience.
This plugin requires me to always open up the config to use the tool when I install vscode with the neovim ext. on a new computer. Which I do.. often! And equally often I will screw up on the configuration and wonder why all keyboard input is being dropped. After several restarts and WTFs I realize that "oh its called nvim not neovim" or "oh neovim was old on this system I need to install it out of tree" or something else.
The resolve-path semantics requires that 1) check if program is an absolute path 2) check if it is available in $PATH
➜ PATH=/bin type /bin/ls
/bin/ls is /bin/ls
➜ PATH=/bin type ls
ls is /bin/ls
➜ PATH=/bin type nvim
nvim is /bin/nvim
➜ PATH=/bin type /usr/bin/nvim
/usr/bin/nvim not found
Checking for absolute paths should be a one line thing with node's path module
As for checking in $PATH I'm not sure, but there's this
You have a good idea here though. The install experience could be improved as the user can be in the dark from time to time about what's happening. I'm currently working on a feature related to paths (splitting neovimPath into neovimPath.windows, neovimPath.linux etc) so if you'd like to see the code that's related to the paths check out #157
Based on what OP said, here are the scenarios to consider:
Activating extension 'asvetliakov.vscode-neovim' failed: Cannot call write after a stream was destroyed. It's impossible to write anything, even using regular vscode way of typingSome other cases:
I'm wondering if it's possible to watch changes to settings.json and auto-retry connecting to nvim eg. when user changes a path
EDIT: Opening settings with a predefined query is possible
EDIT: just spent 20 mins figuring out what's wrong with vscode-neovim on a new install (it wasnt working, no errrors) because the path I provided was /usr/bin/nivm (not nvim)
I've been thinking it would be nice for Nvim clients like https://github.com/neovim/node-client and https://github.com/neovim/pynvim to have a "find nvim" function, since this is a very common need.
Most helpful comment
I've been thinking it would be nice for Nvim clients like https://github.com/neovim/node-client and https://github.com/neovim/pynvim to have a "find
nvim" function, since this is a very common need.