Requirements:
Here's the current API we return:
interface IExtensionApi {
ready: Promise<void>;
}
const extension = vscode.extensions.getExtension<IExtensionApi>('ms-python.python');
Here's the proposed API:
interface IExtensionApi {
ready: Promise<void>; // **Everything** is ready in the extension.
debug: {
/**
* Generate an array of strings for commands to pass to the Python executable to launch the debugger for remote debugging.
* Users can append another array of strings of what they want to execute along with relevant arguments to Python.
* E.g `['/Users/..../pythonVSCode/pythonFiles/experimental/ptvsd_launcher.py', '--host', 'localhost', '--port', '57039', '--wait']`
*/
getRemoteLauncherCommand(host:string, port: number, waitUntilDebuggerAttaches:boolean = true): Promise<string[]>
}
}
Requirements:
nothing new will be added)Here's the current API we return:
Here's the proposed API: