Skip to content

Commit 834fb0e

Browse files
Merge pull request #245 from intersystems-community/optional-docker-terminal
made automatical opening terminal in docker as optional
2 parents 80cb7ac + 7f12a1b commit 834fb0e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,11 @@
766766
"type": "boolean",
767767
"default": false,
768768
"markdownDescription": "Do not offer to install the [intersystems-community.servermanager](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager) helper extension."
769+
},
770+
"objectscript.autoShowTerminal": {
771+
"description": "Automatically show terminal when connected to docker-compose.",
772+
"type": "boolean",
773+
"default": false
769774
}
770775
}
771776
},

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ export function checkConnection(clearCookies = false, uri?: vscode.Uri): void {
199199
panel.text = `${packageJson.displayName} - ERROR`;
200200
return;
201201
}
202-
terminalWithDocker();
202+
const { autoShowTerminal } = config();
203+
autoShowTerminal && terminalWithDocker();
203204
if (dockerPort !== port) {
204205
workspaceState.update(configName + ":host", "localhost");
205206
workspaceState.update(configName + ":port", dockerPort);

0 commit comments

Comments
 (0)