Skip to content

Commit 0a7fbc8

Browse files
committed
Trim the output for the telemetry event
Whitespace is typically meaningless and could cloud the meaning we're trying to understand with the event
1 parent b78df1a commit 0a7fbc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl {
391391
this._logService.debug(`RunInTerminalTool: Using \`${strategy.type}\` execute strategy for command \`${command}\``);
392392
const executeResult = await strategy.execute(command, token);
393393
this._logService.debug(`RunInTerminalTool: Finished \`${strategy.type}\` execute strategy with exitCode \`${executeResult.exitCode}\`, result.length \`${executeResult.output?.length}\`, error \`${executeResult.error}\``);
394-
outputLineCount = executeResult.output === undefined ? 0 : count(executeResult.output, '\n') + 1;
394+
outputLineCount = executeResult.output === undefined ? 0 : count(executeResult.output.trim(), '\n') + 1;
395395
exitCode = executeResult.exitCode;
396396
error = executeResult.error;
397397

0 commit comments

Comments
 (0)