For parts with location and command: give link gesture to location and append command to context menu, add more jsdoc for API, remove dead code, https://github.com/microsoft/vscode/issues/16221#issuecomment-264527520

This commit is contained in:
Johannes Rieken
2022-01-20 14:45:56 +01:00
parent 190fba915e
commit a24000a9a3
6 changed files with 40 additions and 24 deletions

View File

@@ -1271,7 +1271,8 @@ class InlayHintsAdapter {
result.tooltip = part.tooltip && typeConvert.MarkdownString.from(part.tooltip);
if (Location.isLocation(part.location)) {
result.location = typeConvert.location.from(part.location);
} else if (part.command) {
}
if (part.command) {
result.command = this._commands.toInternal(part.command, disposables);
}
return result;