microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.63k stars 29.04k forks source link

Feature to preload terminal automatically #31774

Closed jens1o closed 7 years ago

jens1o commented 7 years ago
Extension Author (truncated) Version
Bookmarks ale 0.15.2
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
regex chr 0.1.0
gitignore cod 0.5.0
vscode-dash dee 1.7.0
css-minify Die 0.0.4
vscode-npm-source dku 1.0.0
python don 0.6.9
gitlens eam 4.3.3
tslint eg2 0.17.0
vscode-npm-script eg2 0.2.0
LogFileHighlighter emi 1.1.1
vscode-reveal evi 0.0.9
php-debug fel 1.11.1
php-intellisense fel 1.5.0
auto-close-tag for 0.4.3
auto-rename-tag for 0.0.14
gc-excelviewer Gra 1.1.15
composer ika 0.5.0
smarty imp 0.2.0
code-guid jam 1.0.1
StretchTimer jpa 0.0.1
json-to-ts Mar 1.5.2
Runner mat 0.1.14
vscode-apache mrm 1.1.1
cpptools ms- 0.12.1
github-issues-prs ms- 0.3.1
php-docblocker nei 1.2.0
emoji Per 0.0.3
vscode-versionlens pfl 0.19.1
datetime rid 1.0.5
vscode-icons rob 7.12.0
sharecode Rol 0.4.1
todotasks san 0.5.0
code-settings-sync Sha 2.8.2
vscode-spotify shy 2.0.0
packagelinker sin 0.0.3
code-spell-checker str 1.3.2
pdf tom 0.2.0
lorem-ipsum Tyr 1.0.0
vscode-arduino vsc 0.2.4
vscode-todo-highlight way 0.5.8
highlight-trailing-white-spaces yba 0.0.2

(2 theme extensions excluded)


Feature Request:

Being able to say that I want the terminal to be loaded once everything is loaded and ready to go. Then, init the terminal in the background, and then when I press the keybinding, everything is set up and ready to go.

Tyriar commented 7 years ago

There was a change recently that allows you to start inputting into the terminal before the process is ready to go.

I don't think we should pursue what you're proposing though as priming a terminal would be a whole lot of code and data loaded into memory that may not be used. The main costly thing is to launch the process which we really shouldn't prepare in the background.

jens1o commented 7 years ago

Okay, I understand your reasons, although I'd happy to use this feature, as I need it every single day. The terminal is very important to me.

Tyriar commented 7 years ago

@jens1o you proposal would just reduce the amount of time to show the prompt though right, by maybe 0.5-1s? The change that allows typing has vastly improved the situation on Insiders as you can hit ctrl+shift+` and start typing immediately. Am I understanding correctly?

jens1o commented 7 years ago

Well, yes, because it takes quite some time powershell booting up at my oldschool laptop. Usually, I hit Ctrl + Ö twice(so it pops up, it loads, and hides immediately; I have a German keyboard), and once I need it, I can use it without waiting 5-10seconds.

This would mean less typos, because I can see what I'm typing.

Also, programmers are quite lazy. 😛

Tyriar commented 7 years ago

Sounds like the laptop needs all the resources it can get, preloading a sessions of powershell could be even worse for your system.

If you really want it, extensions can mostly do what you want (launch terminals in the background). Try out https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-terminals maybe?

jens1o commented 7 years ago

Okay, I'll take a look. Thanks for your help!