Skip to content

Commit 1f8d8e9

Browse files
authored
Merge pull request #181912 from microsoft/tyriar/179913
Set SI command line when nonce is not passed
2 parents 570b5f7 + dffb616 commit 1f8d8e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class CommandDetectionCapability implements ICommandDetectionCapability {
550550
}
551551

552552
setCommandLine(commandLine: string, isTrusted: boolean) {
553-
this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine);
553+
this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine, isTrusted);
554554
this._currentCommand.command = commandLine;
555555
this._currentCommand.isTrusted = isTrusted;
556556
}

src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
334334
}
335335
case VSCodeOscPt.CommandLine: {
336336
let commandLine: string;
337-
if (args.length === 2) {
337+
if (args.length >= 1 || args.length <= 2) {
338338
commandLine = deserializeMessage(args[0]);
339339
} else {
340340
commandLine = '';

0 commit comments

Comments
 (0)