Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Jan 9, 2024
1 parent fb76955 commit 8adf59f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/vs/editor/contrib/inlayHints/browser/inlayHints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class InlayHintItem {
const newHint = await Promise.resolve(this.provider.resolveInlayHint!(this.hint, token));
this.hint.tooltip = newHint?.tooltip ?? this.hint.tooltip;
this.hint.label = newHint?.label ?? this.hint.label;
this.hint.textEdits = newHint?.textEdits ?? this.hint.textEdits;
this._isResolved = true;
} catch (err) {
onUnexpectedExternalError(err);
Expand Down
3 changes: 2 additions & 1 deletion src/vs/workbench/api/browser/mainThreadLanguageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ export class MainThreadLanguageFeatures extends Disposable implements MainThread
return {
...hint,
tooltip: result.tooltip,
label: revive<string | languages.InlayHintLabelPart[]>(result.label)
label: revive<string | languages.InlayHintLabelPart[]>(result.label),
textEdits: result.textEdits
};
};
}
Expand Down

0 comments on commit 8adf59f

Please sign in to comment.