Skip to content

Commit 2a35dc9

Browse files
committed
Take ptvsd experiment into account
1 parent 47b19d0 commit 2a35dc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/client/datascience/jupyter/jupyterDebugger.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as uuid from 'uuid/v4';
88
import { DebugConfiguration } from 'vscode';
99
import * as vsls from 'vsls/vscode';
1010
import { IApplicationShell, ICommandManager, IDebugService, IWorkspaceService } from '../../common/application/types';
11-
import { DebugAdapterDescriptorFactory } from '../../common/experimentGroups';
11+
import { DebugAdapterDescriptorFactory, DebugAdapterNewPtvsd } from '../../common/experimentGroups';
1212
import { traceError, traceInfo, traceWarning } from '../../common/logger';
1313
import { IPlatformService } from '../../common/platform/types';
1414
import { IConfigurationService, IExperimentsManager, Version } from '../../common/types';
@@ -184,7 +184,8 @@ export class JupyterDebugger implements IJupyterDebugger, ICellHashListener {
184184
*/
185185
private async getPtvsdPath(notebook: INotebook): Promise<string> {
186186
const oldPtvsd = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'lib', 'python', 'old_ptvsd');
187-
if (!this.experimentsManager.inExperiment(DebugAdapterDescriptorFactory.experiment)){
187+
if (!this.experimentsManager.inExperiment(DebugAdapterDescriptorFactory.experiment) ||
188+
!this.experimentsManager.inExperiment(DebugAdapterNewPtvsd.experiment)){
188189
return oldPtvsd;
189190
}
190191
const pythonVersion = await this.getKernelPythonVersion(notebook);

0 commit comments

Comments
 (0)