Skip to content

Commit 6fe98d2

Browse files
authored
Add left padding to "auto" inlay hints with no spaces on the left (#9499)
* Add left padding to inlay hint.
1 parent a268363 commit 6fe98d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/src/LanguageServer/Providers/inlayHintProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ interface CppInlayHint {
2222
inlayHintKind: InlayHintKind;
2323
isValueRef: boolean;
2424
hasParamName: boolean;
25+
leftPadding: boolean;
2526
}
2627

2728
interface GetInlayHintsResult {
@@ -130,6 +131,7 @@ export class InlayHintsProvider implements vscode.InlayHintsProvider {
130131
h.label,
131132
vscode.InlayHintKind.Type);
132133
inlayHint.paddingRight = true;
134+
inlayHint.paddingLeft = h.leftPadding;
133135
typeHints.push(inlayHint);
134136
}
135137
}

0 commit comments

Comments
 (0)