@@ -207,7 +207,7 @@ export class InlayHintsProvider implements vscode.InlayHintsProvider {
207207 const resolvedHints : vscode . InlayHint [ ] = [ ] ;
208208 for ( const hint of hints ) {
209209 const showOnLeft : boolean = settings . inlayHintsAutoDeclarationTypesShowOnLeft && hint . identifierLength > 0 ;
210- let labelPart : vscode . InlayHintLabelPart = this . createInlayHintLabelPart ( hint , showOnLeft ? hint . label : ": " + hint . label ) ;
210+ const labelPart : vscode . InlayHintLabelPart = this . createInlayHintLabelPart ( hint , showOnLeft ? hint . label : ": " + hint . label ) ;
211211 const inlayHint : vscode . InlayHint = new vscode . InlayHint (
212212 new vscode . Position ( hint . line , hint . character +
213213 ( showOnLeft ? 0 : hint . identifierLength ) ) ,
@@ -248,7 +248,7 @@ export class InlayHintsProvider implements vscode.InlayHintsProvider {
248248 if ( paramHintLabel === "" && refOperatorString === "" ) {
249249 continue ;
250250 }
251- let labelPart : vscode . InlayHintLabelPart = this . createInlayHintLabelPart ( hint , refOperatorString + paramHintLabel + ":" ) ;
251+ const labelPart : vscode . InlayHintLabelPart = this . createInlayHintLabelPart ( hint , refOperatorString + paramHintLabel + ":" ) ;
252252 const inlayHint : vscode . InlayHint = new vscode . InlayHint (
253253 new vscode . Position ( hint . line , hint . character ) ,
254254 [ labelPart ] ,
@@ -260,9 +260,9 @@ export class InlayHintsProvider implements vscode.InlayHintsProvider {
260260 }
261261
262262 private createInlayHintLabelPart ( hint : CppInlayHint , hintLabel : string ) : vscode . InlayHintLabelPart {
263- let labelPart : vscode . InlayHintLabelPart = new vscode . InlayHintLabelPart ( hintLabel ) ;
263+ const labelPart : vscode . InlayHintLabelPart = new vscode . InlayHintLabelPart ( hintLabel ) ;
264264 if ( hint . definitionUri !== undefined ) {
265- let definitionPos = new vscode . Position (
265+ const definitionPos = new vscode . Position (
266266 hint . definitionLine as number ,
267267 hint . character as number ) ;
268268 const option : vscode . TextDocumentShowOptions = { selection : new vscode . Range ( definitionPos , definitionPos ) } ;
0 commit comments