Skip to content

Commit 2f3609d

Browse files
Kartik Rajeleanorjboyd
Kartik Raj
authored andcommitted
Add logging when interpreter path changes (microsoft#21210)
For microsoft#21208
1 parent c05de89 commit 2f3609d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/common/interpreterPathService.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as fs from 'fs-extra';
77
import { inject, injectable } from 'inversify';
88
import { ConfigurationChangeEvent, ConfigurationTarget, Event, EventEmitter, Uri } from 'vscode';
9-
import { traceError } from '../logging';
9+
import { traceError, traceVerbose } from '../logging';
1010
import { IApplicationEnvironment, IWorkspaceService } from './application/types';
1111
import { PythonSettings } from './configSettings';
1212
import { isTestExecution } from './constants';
@@ -56,6 +56,7 @@ export class InterpreterPathService implements IInterpreterPathService {
5656
public async onDidChangeConfiguration(event: ConfigurationChangeEvent) {
5757
if (event.affectsConfiguration(`python.${defaultInterpreterPathSetting}`)) {
5858
this._didChangeInterpreterEmitter.fire({ uri: undefined, configTarget: ConfigurationTarget.Global });
59+
traceVerbose('Interpreter Path updated', `python.${defaultInterpreterPathSetting}`);
5960
}
6061
}
6162

@@ -129,6 +130,7 @@ export class InterpreterPathService implements IInterpreterPathService {
129130
if (persistentSetting.value !== pythonPath) {
130131
await persistentSetting.updateValue(pythonPath);
131132
this._didChangeInterpreterEmitter.fire({ uri: resource, configTarget });
133+
traceVerbose('Interpreter Path updated', settingKey, pythonPath);
132134
}
133135
}
134136

0 commit comments

Comments
 (0)