Skip to main content

CommandSetContext

Function CommandSetContext 

Source
fn CommandSetContext(
    _ApplicationHandle: AppHandle<Wry>,
    _Window: WebviewWindow<Wry>,
    _RunTime: Arc<ApplicationRunTime>,
    Argument: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>>
Expand description

Native no-op for VS Code’s built-in setContext command. Extensions call vscode.commands.executeCommand('setContext', key, value) to set UI context-key state used for when-clauses. Wind/Sky owns the actual context key service; Mountain forwards the value so CommandProvider doesn’t raise “not found”. Returns null because the real VS Code command returns void.