This commit is contained in:
Johannes Rieken
2022-01-19 13:54:35 +01:00
parent e37dfbde3c
commit d4dde3aa06
7 changed files with 40 additions and 17 deletions

View File

@@ -1268,13 +1268,14 @@ class InlayHintsAdapter {
result.label = hint.label;
} else {
result.label = hint.label.map(part => {
let r: modes.InlayHintLabelPart = { label: part.label };
let result: modes.InlayHintLabelPart = { label: part.label };
result.tooltip = part.tooltip && typeConvert.MarkdownString.from(part.tooltip);
if (Location.isLocation(part.location)) {
r.location = typeConvert.location.from(part.location);
result.location = typeConvert.location.from(part.location);
} else if (part.command) {
r.command = this._commands.toInternal(part.command, disposables);
result.command = this._commands.toInternal(part.command, disposables);
}
return r;
return result;
});
}
return result;