@@ -251,9 +251,8 @@ function getProbeLocations(configValue: string|null, bundled: string): string[]
251
251
/**
252
252
* Construct the arguments that's used to spawn the server process.
253
253
* @param ctx vscode extension context
254
- * @param debug true if debug mode is on
255
254
*/
256
- function constructArgs ( ctx : vscode . ExtensionContext , debug : boolean ) : string [ ] {
255
+ function constructArgs ( ctx : vscode . ExtensionContext ) : string [ ] {
257
256
const config = vscode . workspace . getConfiguration ( ) ;
258
257
const args : string [ ] = [ '--logToConsole' ] ;
259
258
@@ -262,7 +261,7 @@ function constructArgs(ctx: vscode.ExtensionContext, debug: boolean): string[] {
262
261
// Log file does not yet exist on disk. It is up to the server to create the file.
263
262
const logFile = path . join ( ctx . logPath , 'nglangsvc.log' ) ;
264
263
args . push ( '--logFile' , logFile ) ;
265
- args . push ( '--logVerbosity' , debug ? 'verbose' : ngLog ) ;
264
+ args . push ( '--logVerbosity' , ngLog ) ;
266
265
}
267
266
268
267
const ngdk : string | null = config . get ( 'angular.ngdk' , null ) ;
@@ -307,7 +306,7 @@ function getServerOptions(ctx: vscode.ExtensionContext, debug: boolean): lsp.Nod
307
306
// install prod bundle so we have to check whether dev bundle exists.
308
307
module : debug && fs . existsSync ( devBundle ) ? devBundle : prodBundle ,
309
308
transport : lsp . TransportKind . ipc ,
310
- args : constructArgs ( ctx , debug ) ,
309
+ args : constructArgs ( ctx ) ,
311
310
options : {
312
311
env : debug ? devEnv : prodEnv ,
313
312
execArgv : debug ? devExecArgv : prodExecArgv ,
0 commit comments