Skip to content

Commit 7b5d5e9

Browse files
committed
fix issue with terminal
1 parent 9fc6310 commit 7b5d5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ export function portFromDockerCompose(): { port: number; docker: boolean } {
177177
return result;
178178
}
179179

180-
export function terminalWithDocker() {
180+
export async function terminalWithDocker(): Promise<vscode.Terminal> {
181181
const { ns, "docker-compose": dockerCompose } = config("conn");
182182
const { service, file = "docker-compose.yml" } = dockerCompose;
183183
const workspace = currentWorkspaceFolder();
184184

185185
const terminalName = `ObjectScript:${workspace}`;
186-
let terminal = vscode.window.terminals.find(el => el.name === terminalName && terminal.exitStatus == undefined);
186+
let terminal = vscode.window.terminals.find(el => el.name === terminalName && el.exitStatus == undefined);
187187
if (!terminal) {
188188
terminal = vscode.window.createTerminal(terminalName, "docker-compose", [
189189
"-f",

0 commit comments

Comments
 (0)