add API command vscode.executeInlineHintProvider and some end-to-end tests

This commit is contained in:
Johannes Rieken
2021-01-18 18:41:49 +01:00
parent 7a938679f8
commit a40b4e72d0
3 changed files with 110 additions and 1 deletions

View File

@@ -271,6 +271,14 @@ const newCommands: ApiCommand[] = [
return [];
})
),
// --- inline hints
new ApiCommand(
'vscode.executeInlineHintProvider', '_executeInlineHintProvider', 'Execute inline hints provider',
[ApiCommandArgument.Uri, ApiCommandArgument.Range],
new ApiCommandResult<modes.InlineHint[], vscode.InlineHint[]>('A promise that resolves to an array of InlineHint objects', result => {
return result.map(typeConverters.InlineHint.to);
})
),
// --- notebooks
new ApiCommand(
'vscode.resolveNotebookContentProviders', '_resolveNotebookContentProvider', 'Resolve Notebook Content Providers',