forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-apiAPI related issuesAPI related issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityverifiedVerification succeededVerification succeeded
Milestone
Description
I didn't know what this meant. We try to document every API in vscode.d.ts which I like for a formal API like this as then there's no ambiguity on where to stop and what's obvious or not.
jupyter: {
registerHooks(): void;
};
The parameters are defined but not described.
nit: Uses JS-style typings when we should be native TS imo (don't mention the types after @param
)
/**
* 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/lib/python/debugpy', '--listen', 'localhost:57039', '--wait-for-client']`
* @param {string} host
* @param {number} port
* @param {boolean} [waitUntilDebuggerAttaches=true]
* @returns {Promise<string[]>}
*/
getRemoteLauncherCommand(host: string, port: number, waitUntilDebuggerAttaches: boolean): Promise<string[]>;
PythonExtension is both a namespace and an interface, this would be easier to read if they differed:
export declare namespace PythonExtension {
/**
* Returns the API exposed by the Python extension in VS Code.
*/
function api(): Promise<PythonExtension>;
}
Metadata
Metadata
Assignees
Labels
area-apiAPI related issuesAPI related issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityverifiedVerification succeededVerification succeeded