@@ -110,10 +110,10 @@ export class Logger {
110110 this . outputChannel . appendLine ( `["${ level } " - ${ time } ] ${ message } ` ) ;
111111
112112 if ( meta ) {
113- meta = this . formatMeta ( message , meta ) ;
113+ const data : string = this . formatMeta ( message , meta ) ;
114114
115115 // Output the meta data to the output channel.
116- this . outputChannel . appendLine ( meta ) ;
116+ this . outputChannel . appendLine ( data ) ;
117117 }
118118 }
119119
@@ -127,17 +127,18 @@ export class Logger {
127127 * @returns {string } The formatted meta data as a string.
128128 */
129129 private formatMeta ( message : string , meta : unknown ) : string {
130+ let data : string = "" ;
130131 // Convert the meta data to a JSON string with indentation for readability.
131- meta = JSON . stringify ( meta , this . metaReplacer , "\t" ) . trim ( ) ;
132+ data = JSON . stringify ( meta , this . metaReplacer , "\t" ) . trim ( ) ;
132133
133134 // If the message contains "filepaths", eg. "language config filepaths"...
134135 if ( message . includes ( "filepaths" ) ) {
135136 // Split the meta data by commas and join them with newlines for better readability.
136- const lines = meta . split ( "," ) ;
137- meta = lines . join ( ",\n" ) ;
137+ const lines = data . split ( "," ) ;
138+ data = lines . join ( ",\n" ) ;
138139 }
139140
140- return meta ;
141+ return data ;
141142 }
142143
143144 /**
0 commit comments