mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
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:
@@ -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;
|
||||
|
||||
@@ -1174,7 +1174,8 @@ export namespace InlayHintLabelPart {
|
||||
: part.tooltip;
|
||||
if (modes.Command.is(part.command)) {
|
||||
result.command = converter.fromInternal(part.command);
|
||||
} else if (part.location) {
|
||||
}
|
||||
if (part.location) {
|
||||
result.location = location.to(part.location);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user