generalov / open-in-editor-vscode

Open in Editor extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=generalov.open-in-editor-vscode#review-details
MIT License
7 stars 6 forks source link

current working directory changed on windows with vim #6

Open dclaude opened 6 years ago

dclaude commented 6 years ago

I am using open-in-editor-vscode on windows to open files in vim launched in cygwin In vscode I have the following user settings: "alt-editor.binary": "C:\cygwin64\bin\gvim.exe", "alt-editor.args": "--servername vscode --remote-silent \"+call cursor({line}, {column})\" {filename}",

Everything works fine except that when a file is sent to vim the current working directory in vim is changed to the directory of the vscode binary (in vscode I am using the command 'Open in External Editor' through the default shortcut alt+shift+e)

Note: I do not have the same problem when using the same config on macosx

generalov commented 6 years ago

Hi @dclaude , Thanks, I'll take a look at the issue this weekend.

bulletmark commented 5 years ago

I am using this on Arch Linux. No matter what I set alt-editor.args to it just seems to get ignored. E.g. even if I set it to garbage there is no complaint anywhere and the vim window opens fine and at the appropriate line. Any ideas?