experiment with InlayHintLabelPart and source location as "anchor action",

https://github.com/microsoft/vscode/issues/129528
This commit is contained in:
Johannes Rieken
2022-01-07 20:38:54 +01:00
parent 9867820ed9
commit 2586299c42
13 changed files with 267 additions and 100 deletions

View File

@@ -332,8 +332,8 @@ const newCommands: ApiCommand[] = [
new ApiCommand(
'vscode.executeInlayHintProvider', '_executeInlayHintProvider', 'Execute inlay hints provider',
[ApiCommandArgument.Uri, ApiCommandArgument.Range],
new ApiCommandResult<modes.InlayHint[], vscode.InlayHint[]>('A promise that resolves to an array of Inlay objects', result => {
return result.map(typeConverters.InlayHint.to);
new ApiCommandResult<modes.InlayHint[], vscode.InlayHint[]>('A promise that resolves to an array of Inlay objects', (result, args, converter) => {
return result.map(typeConverters.InlayHint.to.bind(undefined, converter));
})
),
// --- notebooks