remote-vscode icon indicating copy to clipboard operation
remote-vscode copied to clipboard

Closing file do not work anymore.

Open thierrymichel opened this issue 7 years ago • 10 comments

Hi,

First fo all, thanks for this extension!

Since the april update (not completely sure about the date), I need to close the window to end properly the rmate process. Previously, it was working when closing the file (which is more convenient than closing and reopening VSC every time). Any idea ?

VSC version 1.12.2 MacOS Sierra 10.12.5 rmate 1.5.9 (2017-02-10) on linux

Thanks

thierrymichel avatar May 29 '17 10:05 thierrymichel

It fails when using rmate -w (for git commit messages, for example)

thierrymichel avatar May 30 '17 07:05 thierrymichel

I didn't test this this scenario. So, I'm not surprise if it doesn't work. I will investigate the issue.

rafaelmaiolla avatar Jun 06 '17 14:06 rafaelmaiolla

@rafaelmaiolla Any progress in this? I'm having the same issue.

sarim avatar Jul 15 '17 17:07 sarim

There is something wrong with VSCode. It is not calling onDidCloseTextDocument as expected. So, it is not possible to identify that the file is closed.

In my tests, it is taking 3 min for the VSCode to call the onDidCloseTextDocument. I'll need to check if there is anything open regarding this issue.

rafaelmaiolla avatar Jul 16 '17 19:07 rafaelmaiolla

I open an issue for vscode https://github.com/Microsoft/vscode/issues/30820

rafaelmaiolla avatar Jul 16 '17 21:07 rafaelmaiolla

While that is being sorted out, maybe you can create a new command >Remote: Close All Files. The command will close any editor tabs open via remote and close files properly.

sarim avatar Jul 17 '17 14:07 sarim

It seems that it stop working in version 1.13.1.

Version 1.12.2 is working as expected.

rafaelmaiolla avatar Jul 18 '17 23:07 rafaelmaiolla

@rafaelmaiolla Where did you get up to with this? I want to use VS Code as my Git Editor. Currently works fine for editing files normally, but using rmate -w as Git Editor doesn't send the edit back to the server/ssh session, and just hangs.

LukeIreland1 avatar Sep 26 '19 12:09 LukeIreland1

@LukeIreland1, last time I investigated this, it was an issue in VS Code. Something changed there and the related functions were not being called when that was closed. I opened a ticket for them, but it was closed.

rafaelmaiolla avatar Sep 26 '19 13:09 rafaelmaiolla

@rafaelmaiolla Where did you get up to with this? I want to use VS Code as my Git Editor. Currently works fine for editing files normally, but using rmate -w as Git Editor doesn't send the edit back to the server/ssh session, and just hangs.

I've ended up changing the python version of rmate client, by adding tm_sock.settimeout(60 * 60 * 24) as a kludge to kill rmate after 24 hours.

romanmar avatar Aug 24 '21 21:08 romanmar