File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Extension/src/LanguageServer/Providers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,16 @@ export class InlayHintsProvider implements vscode.InlayHintsProvider {
119
119
}
120
120
let refOperatorString : string = "" ;
121
121
if ( settings . inlayHintsReferenceOperator && hint . isValueRef ) {
122
- refOperatorString = ( paramHintLabel . length > 0 && settings . inlayHintsReferenceOperatorShowSpace ) ? "& " : "&" ;
122
+ refOperatorString = ( paramHintLabel !== "" && settings . inlayHintsReferenceOperatorShowSpace ) ? "& " : "&" ;
123
123
}
124
- let label : string = "" ;
125
- if ( paramHintLabel . length > 0 || refOperatorString . length > 0 ) {
126
- label = refOperatorString + paramHintLabel + ":" ;
124
+
125
+ if ( paramHintLabel === "" && refOperatorString === "" ) {
126
+ continue ;
127
127
}
128
128
129
129
const inlayHint : vscode . InlayHint = new vscode . InlayHint (
130
130
new vscode . Position ( hint . position . line , hint . position . character ) ,
131
- label ,
131
+ refOperatorString + paramHintLabel + ":" ,
132
132
vscode . InlayHintKind . Parameter ) ;
133
133
inlayHint . paddingRight = true ;
134
134
resolvedHints . push ( inlayHint ) ;
You can’t perform that action at this time.
0 commit comments