GhostText icon indicating copy to clipboard operation
GhostText copied to clipboard

Close the VSCode tab after disconnection

Open kevintraver opened this issue 2 years ago • 3 comments

When saving the document in vscode, the focus is brought back to the browser, and then the popup message says 'Disconnected', but the document remains as a tab in VS Code.

Is this by design? Is there a way to automatically have the document close after saving? Otherwise there ends up a bunch of open documents when switching back to VSCode.

kevintraver avatar Aug 19 '23 18:08 kevintraver

When saving the document in vscode, the focus is brought back to the browser

This should not happen. I assume you're talking about "closing the connection from the browser". In which case, yes, the tab is not meant to automatically close.

In the Sublime Text plugin this is actually an option, so I'd accept a PR to automatically close the tab on disconnection.

fregante avatar Aug 19 '23 22:08 fregante

I am referring to both ways. If you are in the browser or in the text editor. In both cases, once the disconnect happens, the text editor tab remains open.

kevintraver avatar Aug 20 '23 03:08 kevintraver

PR: https://github.com/fregante/GhostText-for-VSCode/pull/15

kevintraver avatar Aug 21 '23 00:08 kevintraver