mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Revert "remove whitespaceBefore/After from InlayHint, https://github.com/microsoft/vscode/issues/16221"
This reverts commit ee56349b8b.
This commit is contained in:
@@ -1156,7 +1156,9 @@ export namespace InlayHint {
|
||||
return {
|
||||
text: hint.text,
|
||||
position: Position.from(hint.position),
|
||||
kind: InlayHintKind.from(hint.kind ?? types.InlayHintKind.Other)
|
||||
kind: InlayHintKind.from(hint.kind ?? types.InlayHintKind.Other),
|
||||
whitespaceBefore: hint.whitespaceBefore,
|
||||
whitespaceAfter: hint.whitespaceAfter
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1166,6 +1168,8 @@ export namespace InlayHint {
|
||||
Position.to(hint.position),
|
||||
InlayHintKind.to(hint.kind)
|
||||
);
|
||||
res.whitespaceAfter = hint.whitespaceAfter;
|
||||
res.whitespaceBefore = hint.whitespaceBefore;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user