Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Python Debugger extension does not export its API #194

Closed
bwateratmsft opened this issue Feb 5, 2024 · 3 comments
Closed

The Python Debugger extension does not export its API #194

bwateratmsft opened this issue Feb 5, 2024 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality under-discussion Issue is under discussion for relevance, priority, approach

Comments

@bwateratmsft
Copy link

bwateratmsft commented Feb 5, 2024

The Python Debugger extension does not export its API. This blocks the Docker extension from debugging using the new debugpy launch configuration. (Blocking microsoft/vscode-docker#4221)

See

export async function activate(context: IExtensionContext): Promise<void> {

It returns Promise<void>. Compare to https://github.com/microsoft/vscode-python/blob/c0bf1b73b608d1c11b04f18966177335faea74b4/src/client/extension.ts#L61 in the current Python extension which does return its API.

@bwateratmsft
Copy link
Author

/cc @luabud . This is unrelated to the debugger path warning that we're getting in Insiders currently (microsoft/vscode-docker#4209)

@bwateratmsft
Copy link
Author

The Docker extension uses the following interface:

// Adapted from https://github.com/microsoft/vscode-python-debugger/blob/main/src/extension/api.ts
interface PythonDebuggerExtensionAPI {
    debug: {
        getDebuggerPackagePath(): Promise<string | undefined>;
    }
}

@paulacamargo25
Copy link
Contributor

paulacamargo25 commented Mar 7, 2024

Close because is going to be solved in: microsoft/vscode-python#23032

@paulacamargo25 paulacamargo25 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

3 participants