From da188b0c258554016fa1aa63cc5968174df3e4e3 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Mon, 11 Oct 2021 12:19:34 -0700 Subject: [PATCH 1/2] Ensure commands run are not logged twice in Python output channel --- src/client/common/process/pythonExecutionFactory.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/client/common/process/pythonExecutionFactory.ts b/src/client/common/process/pythonExecutionFactory.ts index 510da059ef9a..e909a8d6dfe7 100644 --- a/src/client/common/process/pythonExecutionFactory.ts +++ b/src/client/common/process/pythonExecutionFactory.ts @@ -85,7 +85,6 @@ export class PythonExecutionFactory implements IPythonExecutionFactory { pythonPath = this.configService.getSettings(options.resource).pythonPath; } const processService: IProcessService = await this.processServiceFactory.create(options.resource); - processService.on('exec', this.logger.logProcess.bind(this.logger)); const windowsStoreInterpreterCheck = (await inDiscoveryExperiment(this.experimentService)) ? // Class methods may depend on other properties which belong to the class, so bind the correct context. From 8e32caf232e9239b5696625005fd0210cd159e23 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Mon, 11 Oct 2021 12:20:28 -0700 Subject: [PATCH 2/2] News entry --- news/2 Fixes/7160.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/2 Fixes/7160.md diff --git a/news/2 Fixes/7160.md b/news/2 Fixes/7160.md new file mode 100644 index 000000000000..a7765d71ec16 --- /dev/null +++ b/news/2 Fixes/7160.md @@ -0,0 +1 @@ +Ensure commands run are not logged twice in Python output channel.