Edit in vscode opens extra files corresponding to vscode switches #4971
-
|
I'm using vscode with the c# extension, on linux. I added this config to open files in vscode when pressing e: That works... mostly. From time-to-time it correctly opens the file at the appropriate line, but also opens two new (unsaved) empty files at the repo's root: I don't open vscode that way - I always use the normal Why/how is lazygit determining those switches, and how do I stop it from passing them to vscode? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I have absolutely no idea what's happening here. Lazygit is certainly not the one that adds those switches, but I have no explanation for who else might be doing that. If you look at the Command log panel in the lower right of lazygit's window, it should show the command that lazygit uses to edit the file. Unrelated question: is it on purpose that you explicitly define |
Beta Was this translation helpful? Give feedback.
I have absolutely no idea what's happening here. Lazygit is certainly not the one that adds those switches, but I have no explanation for who else might be doing that.
If you look at the Command log panel in the lower right of lazygit's window, it should show the command that lazygit uses to edit the file.
Unrelated question: is it on purpose that you explicitly define
editAtLine? It is not needed, selecting aneditPresetshould be enough. It defineseditAtLinetoo, but the vscode preset also includes--reuse-window.