Skip to content

Support 'code -rw' in running instance and wait until tab gets closed #24327

@azixMcAze

Description

@azixMcAze

Hello

When opening a file from the command line with code --wait --reuse-window <file>, the command waits for the previously opened window to be closed before exiting. It is coherent with the use of --wait without --reuse-window but it is not very convenient.

One can want to reuse an existing window because it is faster than opening a new window. The small delay before the file has finished opened can be a little annoying when writing a commit message for example (if you don't use git or the upcoming SCM API).

One can also argue that it is easier to only close a tab than close the whole window : cmd+w instead of cmd+w cmd+w or cmd+shift+w on mac for example

Or maybe there could be a new command-line toggle instead of modifying the behaviour of --wait

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions