Revert "remove whitespaceBefore/After from InlayHint, https://github.com/microsoft/vscode/issues/16221"

This reverts commit ee56349b8b.
This commit is contained in:
Johannes Rieken
2021-09-21 15:25:16 +02:00
parent 530a6a7cc7
commit 02e94bc19d
5 changed files with 23 additions and 2 deletions

View File

@@ -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;
}
}