Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Update terminal.integrated.env.osx to include FIG_NEW_SESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
fig-io committed Oct 25, 2021
1 parent fbf6481 commit 9b4ffa4
Show file tree
Hide file tree
Showing 3 changed files with 3,122 additions and 41 deletions.
9 changes: 8 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ let runCommand = function (command) {
});
}

let config = vscode.workspace.getConfiguration()
// fig.log is an internal setting as it's intended for developers only, this means it won't show up
// in the settings UI/editor. Add `"fig.log": true` to your settings.json and reload the window to
// enable logging.
let shouldLog = vscode.workspace.getConfiguration().get('fig.log') === true;
let shouldLog = config.get('fig.log') === true;


// Ensure that any VSCode terminal session has FIG_NEW_SESSION set as an environment variable
let osxEnv = config.get("terminal.integrated.env.osx")
osxEnv["FIG_NEW_SESSION"] = "1"
config.update("terminal.integrated.env.osx", osxEnv, true)

function log(...args) {
if (shouldLog) {
Expand Down
Loading

0 comments on commit 9b4ffa4

Please sign in to comment.