Terminal reconnection release notes
This commit is contained in:
Родитель
b3f1056b8d
Коммит
2725aa7373
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c41c221a84cb9385a07150f6460f284b440a75667783d9e9c09475cbaecec2fa
|
||||
size 2683695
|
|
@ -6,9 +6,13 @@
|
|||
|
||||
> Note: This is a preliminary release note, and we are still working out the details of this feature
|
||||
|
||||
Currently, if you close a Github Codespace, or even if you just reload the tab, any terminal processes that you had running will be shut down. This month, we gave VS Code the ability to persist your terminals and reconnect to them when you reopen the Codespace. Besides Codespaces, this same ability applies to all flavors of VS Code Remote - your terminals will be persisted and reconnected to across sessions.
|
||||
Currently, if you reload the browser tab with your Github Codespace in it, any terminal processes that you had running will be shut down. This month, we gave Codespaces the ability to persist your terminals and reconnect to them when you reopen the Codespace. Besides Codespaces, this same ability applies to all flavors of VS Code Remote - your terminals will be persisted and reconnected to when reloading the window.
|
||||
|
||||
We try as best we can to only connect to a terminal from one window. If a window disconnects, its terminal sessions are considered "orphaned" and will be kept alive for up to 3 hours. The next client that connects will reconnect to those terminal sessions. In some cases, it is not clear to the server whether a client has disconnected. So when a client may still be connected, the server will ping that client to ask whether it is still using a terminal, with a timeout of 4 seconds. So it can take up to 4 seconds for a terminal to be adopted by a new client.
|
||||
When a VS Code Remote window closes, your terminal sessions will remain running in the background for some amount of time while we wait for a window to reconnect. The exact amount of time that they will be available for will vary based on a few factors. During this short period of time, the first VS Code window that connects to the remote will reattach to any terminals that were originally started in the same workspace.
|
||||
|
||||
You can even reattach manually to terminals from other workspaces that are still running in the background, with the new command `Terminal: Attach to Session`. This will show a list of terminals that are not currently attached to any window. Selecting one will attach it to the current window.
|
||||
|
||||
![Terminal command-attach to session](images/1_51/terminal-attach.gif)
|
||||
|
||||
### Ports view improvements
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче