
Open the workspace again after it has been closed.Įxample: vscode. be used with the vscode.openFolder command to Is untitled, the returned URI will use the untitled: scheme
the path of the workspace file as Uri otherwise. The location of the workspace file, for example:įile:///Users/name/Development/de-workspaceįor a workspace that is untitled and not yet saved.ĭepending on the workspace that is opened, the value will be: registerCommand ( 'extension.sayHello', () =>, doc ) // 10 match ( '*', doc ) // 5 Register a command handler with the identifier extension.sayHello. This is a sample that registers a command handler and adds an entry for that command to the palette. When invoking an editor command not all argument types are supported. keybinding - Use the keybindings-section in package.json to enableĬommands from other extensions and from the editor itself are accessible to an extension. palette - Use the commands-section in package.json to make a command show in. CommandsĬan be executed manually or from a UI gesture. The function is sometimes also called command handler.Ĭommands can be added to the editor using the registerCommandĪnd registerTextEditorCommand functions.