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 {
119119 }
120120 let refOperatorString : string = "" ;
121121 if ( settings . inlayHintsReferenceOperator && hint . isValueRef ) {
122- refOperatorString = ( paramHintLabel . length > 0 && settings . inlayHintsReferenceOperatorShowSpace ) ? "& " : "&" ;
122+ refOperatorString = ( paramHintLabel !== "" && settings . inlayHintsReferenceOperatorShowSpace ) ? "& " : "&" ;
123123 }
124- let label : string = "" ;
125- if ( paramHintLabel . length > 0 || refOperatorString . length > 0 ) {
126- label = refOperatorString + paramHintLabel + ":" ;
124+
125+ if ( paramHintLabel === "" && refOperatorString === "" ) {
126+ continue ;
127127 }
128128
129129 const inlayHint : vscode . InlayHint = new vscode . InlayHint (
130130 new vscode . Position ( hint . position . line , hint . position . character ) ,
131- label ,
131+ refOperatorString + paramHintLabel + ":" ,
132132 vscode . InlayHintKind . Parameter ) ;
133133 inlayHint . paddingRight = true ;
134134 resolvedHints . push ( inlayHint ) ;
You can’t perform that action at this time.
0 commit comments