Skip to content

Commit

Permalink
Fix terminal closing on creation (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
GauthierPLM authored Oct 19, 2018
1 parent 1081e24 commit 2ae858e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ExecutionControlEpic/TerminalFeature/Epics/Terminals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TerminalStrategy from "../../LanguageServerProtocolFeature/Model/Terminal
import getUserShell from "../Model/GetUserShell";
import TerminalsController from "../Model/TerminalsController";
import os from "os";
import path from "path";

let lastUsedTerminalId = -1;

Expand All @@ -29,7 +30,7 @@ export function CreateTerminal() {
type: "terminal",
shell: shell,
command: command,
cwd: action.payload.path,
cwd: path.dirname(action.payload.path),
env: process.env,
},
});
Expand Down

0 comments on commit 2ae858e

Please sign in to comment.