first cut of proposed "inline values provider" API

This commit is contained in:
Andre Weinand
2021-02-16 16:31:33 +01:00
parent c9607e61e0
commit e537fd9e31
10 changed files with 487 additions and 21 deletions

View File

@@ -359,6 +359,14 @@ const newCommands: ApiCommand[] = [
};
}))
),
// --- debug support
new ApiCommand(
'vscode.executeInlineValueProvider', '_executeInlineValueProvider', 'Execute inline value provider',
[ApiCommandArgument.Uri, ApiCommandArgument.Range],
new ApiCommandResult<modes.InlineValue[], vscode.InlineValue[]>('A promise that resolves to an array of InlineValue objects', result => {
return result.map(typeConverters.InlineValue.to);
})
),
// --- open'ish commands
new ApiCommand(
'vscode.open', '_workbench.open', 'Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.',