You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log("Starting the language server with "+cmd+" "+args.join(" "));
245
-
myOutputChannel.appendLine("Starting the language server with "+cmd+" "+args.join(" "));
237
+
this.logger.debug("Starting the language server with "+cmd+" "+args.join(" "));
246
238
varproc=cp.spawn(cmd,args,options)
247
-
console.log("ProcID = "+proc.pid);
248
-
myOutputChannel.appendLine('Language server PID:'+proc.pid)
239
+
this.logger.debug('Language server PID:'+proc.pid)
249
240
250
241
returnproc;
251
242
}
252
243
253
244
privatestartLangClientTCP(): LanguageClient{
254
-
this.puppetOutputChannel.appendLine('Configuring language server options')
245
+
this.logger.debug('Configuring language server options')
255
246
256
247
varconnMgr:ConnectionManager=this;
257
248
letserverOptions: ServerOptions=function(){
@@ -261,24 +252,25 @@ export class ConnectionManager implements IConnectionManager {
261
252
resolve({reader: client,writer: client});
262
253
});
263
254
client.on('error',function(err){
264
-
console.log(`[Puppet Lang Server Client] `+err);
255
+
this.logger.error(`[Puppet Lang Server Client] `+err);
265
256
connMgr.setSessionFailure("Could not start language client: ",err.message);
266
-
257
+
267
258
returnnull;
268
259
})
269
260
});
270
261
}
271
262
272
-
this.puppetOutputChannel.appendLine('Configuring language server client options')
263
+
this.logger.debug('Configuring language server client options')
273
264
letclientOptions: LanguageClientOptions={
274
265
documentSelector: [langID],
275
266
}
276
267
277
-
this.puppetOutputChannel.appendLine(`Starting language server client (host ${this.connectionConfiguration.host} port ${this.connectionConfiguration.port})`)
268
+
this.logger.debug(`Starting language server client (host ${this.connectionConfiguration.host} port ${this.connectionConfiguration.port})`)
269
+
278
270
vartitle=`tcp lang server (host ${this.connectionConfiguration.host} port ${this.connectionConfiguration.port})`;
0 commit comments