Skip to content

Commit a3dc9ad

Browse files
authored
Merge pull request microsoft#257516 from microsoft/tyriar/257442_2
Trim the output for the telemetry event
2 parents 04d3b0f + 0a7fbc8 commit a3dc9ad

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
@@ -399,7 +399,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl {
399399
this._logService.debug(`RunInTerminalTool: Using \`${strategy.type}\` execute strategy for command \`${command}\``);
400400
const executeResult = await strategy.execute(command, token);
401401
this._logService.debug(`RunInTerminalTool: Finished \`${strategy.type}\` execute strategy with exitCode \`${executeResult.exitCode}\`, result.length \`${executeResult.output?.length}\`, error \`${executeResult.error}\``);
402-
outputLineCount = executeResult.output === undefined ? 0 : count(executeResult.output, '\n') + 1;
402+
outputLineCount = executeResult.output === undefined ? 0 : count(executeResult.output.trim(), '\n') + 1;
403403
exitCode = executeResult.exitCode;
404404
error = executeResult.error;
405405

0 commit comments

Comments
 (0)