Skip to content

mmis1000/Vscode-terminal-tab

Repository files navigation

Terminal Tab

Update

The vscode supports terminal tab in nightly now, and it will soon be on the stable.
See microsoft/vscode#10546 (comment)

This extension's job is done. 👏👏👏👏👏

Warning

This repository abused non-public API in the vscode and will break at any time in the future.
Please use at your own caution.
See issue list below.

This extension is a experiment about terminal in editor tab experience.

The extension

There may not be any future feature release because this repository is intended to be used as an POC.
But fork, modify and republish it is welcome as long as you follow the MIT license.

Features

Besides open the terminal as an editor tab.
It is also experiment of

  1. auto recover tab (its cwd and env) on load workspace
  2. auto recover terminal content after recover the tag (just like iterm 2)
  3. persistent session with tmux (idea stole form from cloud9 ide)

Commands

  1. Launch a terminal tab here
    1. Terminal session gone on vscode closed
    2. However terminal content was restore on vscode restart.
    3. Shortcuts
      1. Also available as shortcut on top right of editor column
      2. Also available as file menu shortcut
  2. Launch a tmux baked terminal tab here
    1. Terminal session is not destroyed unless you close the tab (even close editor does not matter).
    2. Session can be listed with tmux -L vscode-terminal-tab list-sessions

Requirements

  1. Access to shell env. (or you can't open terminal)
  2. Tmux installed if you want to use tmux baked terminal tab.

Extension Settings

No.

All setting are read directly from integrated terminal setting.

Known Issues

  1. Integration with the vscode is lacking because there is no api for that.
    The tab looks more like a terminal that live in vscode by accident.
  2. There is no formal way to use native module in native extension, so I abused internals of vscode.
  3. There is no formal way to use production icon in webview tab title, so I copied it directly from codicons.

Release Notes

0.1.4

Fix unintended scrollbar of tab under certain condition

0.1.4

Dependency bump Fix corrupted history when in alternative screen.

0.1.3

Fix issue #7: color theme not update on config change

0.1.2

Skip ahead

0.1.1

Fix: Fix locale detection again

0.1.0

Feat: Support terminal.integrated.env.*
Fix: Fix locale detection

0.0.7

Feat: Add a tmux baked persistent terminal.

0.0.6

Fix: Apply default shell args from terminal.integrated.shellArgs.${platform}

0.0.5

Feat: Add icon to the tab title.

0.0.4

Fix: Save/restore current shell at tab creation that correspond to the terminal tab.
Feat: Forward shell title.
Feat: Add a short cut on editor title to open new terminal.

0.0.3

Update description only

0.0.2

Update description only

0.0.1

Initial publish

See Also

Terminal issues

Extension issues

Note

The icons are from codicons.

About

Open the terminal as editor tab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published