Skip to content

Commit

Permalink
exclude env
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Jan 14, 2025
1 parent 6b9b146 commit 7137217
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/client/common/terminal/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ export class TerminalService implements ITerminalService, Disposable {
disposable.dispose();
resolve(true);

const shellIntegration = (terminal.shellIntegration as unknown) as { env: any };
const tempEnv = shellIntegration.env;
console.log(tempEnv);
traceVerbose('Printing temp env from service.ts in terminal1', tempEnv);
traceVerbose('finished printing temp env ');
// const shellIntegration = (terminal.shellIntegration as unknown) as { env: any };
// const tempEnv = shellIntegration.env;
// console.log(tempEnv);
// traceVerbose('Printing temp env from service.ts in terminal1', tempEnv);
// traceVerbose('finished printing temp env ');
});
const TIMEOUT_DURATION = 500;
const timer = setTimeout(() => {
Expand All @@ -126,12 +126,12 @@ export class TerminalService implements ITerminalService, Disposable {
} else if (terminal.shellIntegration) {
const execution = terminal.shellIntegration.executeCommand(commandLine);

const shellIntegration = (terminal.shellIntegration as unknown) as { env: any };
const tempEnv = shellIntegration.env;
console.log(tempEnv);
traceVerbose('Printing temp env from service.ts in terminal2', tempEnv);
traceVerbose('finished printing temp env ');
traceVerbose(`Shell Integration is enabled, executeCommand: ${commandLine}`);
// const shellIntegration = (terminal.shellIntegration as unknown) as { env: any };
// const tempEnv = shellIntegration.env;
// console.log(tempEnv);
// traceVerbose('Printing temp env from service.ts in terminal2', tempEnv);
// traceVerbose('finished printing temp env ');
// traceVerbose(`Shell Integration is enabled, executeCommand: ${commandLine}`);
return execution;
} else {
terminal.sendText(commandLine);
Expand Down

0 comments on commit 7137217

Please sign in to comment.