Skip to content

Commit d4bd757

Browse files
Display activate button when a terminal is moved to the editor window (#764)
Fixes #631 Co-authored-by: Eleanor Boyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent e2fde2a commit d4bd757

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,18 @@
497497
"when": "explorerViewletVisible && resourceExtname == .py"
498498
}
499499
],
500+
"editor/title": [
501+
{
502+
"command": "python-envs.terminal.activate",
503+
"group": "navigation",
504+
"when": "resourceScheme == vscode-terminal && config.python-envs.terminal.showActivateButton && pythonTerminalActivation && !pythonTerminalActivated"
505+
},
506+
{
507+
"command": "python-envs.terminal.deactivate",
508+
"group": "navigation",
509+
"when": "resourceScheme == vscode-terminal && config.python-envs.terminal.showActivateButton && pythonTerminalActivation && pythonTerminalActivated"
510+
}
511+
],
500512
"editor/title/run": [
501513
{
502514
"command": "python-envs.runAsTask",

0 commit comments

Comments
 (0)