Skip to content

Commit

Permalink
Add logging for executeCommand (microsoft#24138)
Browse files Browse the repository at this point in the history
Need logging to further investigate
microsoft#24123 (comment)
for windows.
  • Loading branch information
anthonykim1 authored Sep 19, 2024
1 parent cac5bb2 commit 62897c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/common/terminal/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
TerminalShellType,
ITerminalExecutedCommand,
} from './types';
import { traceVerbose } from '../../logging';

@injectable()
export class TerminalService implements ITerminalService, Disposable {
Expand Down Expand Up @@ -111,9 +112,11 @@ export class TerminalService implements ITerminalService, Disposable {
if (listener) {
this.executeCommandListeners.add(listener);
}
traceVerbose(`Shell Integration is enabled, executeCommand: ${commandLine}`);
});
} else {
terminal.sendText(commandLine);
traceVerbose(`Shell Integration is disabled, sendText: ${commandLine}`);
}

return undefined;
Expand Down

0 comments on commit 62897c6

Please sign in to comment.