Commands

class vscode.extension.Command(name: str, func: Callable, ext: Extension, title: str | None = None, category: str | None = None, keybind: str | None = None, when: str | None = None)

Bases: object

A class that implements the protocol for commands that can be used via the command palette. These should not be created manually, instead they should be created via the decorator or functional interface.

property extension_string: str
to_dict() str
class vscode.context.Context(ws)

Bases: object

Represents the context in which a command is being invoked under.

This class is not created manually and is instead passed around to commands as the first parameter.

This class is the python equivalent of the vscode module in the JavaScript API i.e. vscode.window becomes context.window and so on.

property show