Skip to content

Commit

Permalink
Merge pull request #181912 from microsoft/tyriar/179913
Browse files Browse the repository at this point in the history
Set SI command line when nonce is not passed
  • Loading branch information
Tyriar authored May 9, 2023
2 parents 570b5f7 + dffb616 commit 1f8d8e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export class CommandDetectionCapability implements ICommandDetectionCapability {
}

setCommandLine(commandLine: string, isTrusted: boolean) {
this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine);
this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine, isTrusted);
this._currentCommand.command = commandLine;
this._currentCommand.isTrusted = isTrusted;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
}
case VSCodeOscPt.CommandLine: {
let commandLine: string;
if (args.length === 2) {
if (args.length >= 1 || args.length <= 2) {
commandLine = deserializeMessage(args[0]);
} else {
commandLine = '';
Expand Down

0 comments on commit 1f8d8e9

Please sign in to comment.