Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/client/datascience/api/jupyterIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
// Licensed under the MIT License.

import { inject, injectable } from 'inversify';
import { join } from 'path';
import { CancellationToken, Event, Uri } from 'vscode';
import { InterpreterUri } from '../../common/installer/types';
import { IExtensions, IInstaller, InstallerResponse, Product, Resource } from '../../common/types';
import { EXTENSION_ROOT_DIR } from '../../constants';
import { IEnvironmentActivationService } from '../../interpreter/activation/types';
import { IInterpreterQuickPickItem, IInterpreterSelector } from '../../interpreter/configuration/types';
import { IInterpreterService } from '../../interpreter/contracts';
Expand Down Expand Up @@ -51,6 +53,10 @@ type PythonApiForJupyterExtension = {
* IInstaller
*/
install(product: Product, resource?: InterpreterUri, cancel?: CancellationToken): Promise<InstallerResponse>;
/**
* Returns path to where `debugpy` is. In python extension this is `/pythonFiles/lib/python`.
*/
getDebuggerPath(): Promise<string>;
};

type JupyterExtensionApi = {
Expand Down Expand Up @@ -97,7 +103,8 @@ export class JupyterExtensionIntegration {
product: Product,
resource?: InterpreterUri,
cancel?: CancellationToken
): Promise<InstallerResponse> => this.installer.install(product, resource, cancel)
): Promise<InstallerResponse> => this.installer.install(product, resource, cancel),
getDebuggerPath: async () => join(EXTENSION_ROOT_DIR, 'pythonFiles', 'lib', 'python')
Comment thread
DonJayamanne marked this conversation as resolved.
Outdated
});
}
}