Skip to content

Commit addd6f1

Browse files
committed
avoid polluting shell history with debugger commands
fixes microsoft#88038
1 parent 6f1ee4b commit addd6f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/debug/node/terminals.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ export function prepareCommand(args: DebugProtocol.RunInTerminalRequestArguments
108108
}
109109

110110
let quote: (s: string) => string;
111-
let command = '';
111+
// begin command with a space to avoid polluting shell history
112+
let command = ' ';
112113

113114
switch (shellType) {
114115

0 commit comments

Comments
 (0)