@@ -48,7 +48,7 @@ class RobotCodeDebugConfigurationProvider implements vscode.DebugConfigurationPr
4848 resolveDebugConfiguration (
4949 folder : vscode . WorkspaceFolder | undefined ,
5050 debugConfiguration : vscode . DebugConfiguration ,
51- token ?: vscode . CancellationToken
51+ token ?: vscode . CancellationToken ,
5252 ) : vscode . ProviderResult < vscode . DebugConfiguration > {
5353 return this . _resolveDebugConfiguration ( folder , debugConfiguration , token ) ;
5454 }
@@ -57,7 +57,7 @@ class RobotCodeDebugConfigurationProvider implements vscode.DebugConfigurationPr
5757 async _resolveDebugConfiguration (
5858 folder : vscode . WorkspaceFolder | undefined ,
5959 debugConfiguration : vscode . DebugConfiguration ,
60- token ?: vscode . CancellationToken
60+ token ?: vscode . CancellationToken ,
6161 ) : Promise < vscode . DebugConfiguration > {
6262 if ( ! debugConfiguration . type && ! debugConfiguration . request && ! debugConfiguration . name ) {
6363 const editor = vscode . window . activeTextEditor ;
@@ -69,7 +69,7 @@ class RobotCodeDebugConfigurationProvider implements vscode.DebugConfigurationPr
6969 const result = await vscode . window . showQuickPick (
7070 DEBUG_CONFIGURATIONS . map ( ( v ) => v ) ,
7171 { canPickMany : false } ,
72- token
72+ token ,
7373 ) ;
7474
7575 if ( result !== undefined ) {
@@ -93,7 +93,7 @@ class RobotCodeDebugConfigurationProvider implements vscode.DebugConfigurationPr
9393 ?. find (
9494 ( v ) =>
9595 v ?. type === "robotcode" &&
96- ( v ?. purpose === "default" || ( Array . isArray ( v ?. purpose ) && v ?. purpose ?. indexOf ( "default" ) > - 1 ) )
96+ ( v ?. purpose === "default" || ( Array . isArray ( v ?. purpose ) && v ?. purpose ?. indexOf ( "default" ) > - 1 ) ) ,
9797 ) ?? { } ;
9898
9999 debugConfiguration = { ...template , ...defaultLaunchConfig , ...debugConfiguration } ;
@@ -202,11 +202,14 @@ class RobotCodeDebugConfigurationProvider implements vscode.DebugConfigurationPr
202202}
203203
204204class RobotCodeDebugAdapterDescriptorFactory implements vscode . DebugAdapterDescriptorFactory {
205- constructor ( private readonly pythonManager : PythonManager , private readonly outputChannel : vscode . OutputChannel ) { }
205+ constructor (
206+ private readonly pythonManager : PythonManager ,
207+ private readonly outputChannel : vscode . OutputChannel ,
208+ ) { }
206209
207210 async createDebugAdapterDescriptor (
208211 session : vscode . DebugSession ,
209- _executable : vscode . DebugAdapterExecutable | undefined
212+ _executable : vscode . DebugAdapterExecutable | undefined ,
210213 ) : Promise < vscode . DebugAdapterDescriptor > {
211214 const config = vscode . workspace . getConfiguration ( CONFIG_SECTION , session . workspaceFolder ) ;
212215
@@ -250,7 +253,7 @@ class RobotCodeDebugAdapterDescriptorFactory implements vscode.DebugAdapterDescr
250253 const port =
251254 ( await getAvailablePort (
252255 [ host ] ,
253- config . get ( "debugLauncher.tcpPort" , DEBUG_ADAPTER_DEFAULT_TCP_PORT ) ?? DEBUG_ADAPTER_DEFAULT_TCP_PORT
256+ config . get ( "debugLauncher.tcpPort" , DEBUG_ADAPTER_DEFAULT_TCP_PORT ) ?? DEBUG_ADAPTER_DEFAULT_TCP_PORT ,
254257 ) ) ?? DEBUG_ADAPTER_DEFAULT_TCP_PORT ;
255258
256259 this . spawnDebugLauncher ( session , config , [ "debug-launch" , "--tcp" , `${ host } :${ port } ` , ...debugLauncherArgs ] ) ;
@@ -301,7 +304,7 @@ class RobotCodeDebugAdapterDescriptorFactory implements vscode.DebugAdapterDescr
301304 private spawnDebugLauncher (
302305 session : vscode . DebugSession ,
303306 config : vscode . WorkspaceConfiguration ,
304- launchArgs : string [ ]
307+ launchArgs : string [ ] ,
305308 ) {
306309 const pythonCommand = this . pythonManager . getPythonCommand ( session . workspaceFolder ) ;
307310
@@ -337,7 +340,7 @@ class RobotCodeDebugAdapterDescriptorFactory implements vscode.DebugAdapterDescr
337340 p . on ( "close" , ( code , signal ) => {
338341 if ( code !== 0 ) {
339342 this . outputChannel . appendLine (
340- `debug launcher exited with code ${ code ?? "unknown" } and signal ${ signal ?? "unknown" } `
343+ `debug launcher exited with code ${ code ?? "unknown" } and signal ${ signal ?? "unknown" } ` ,
341344 ) ;
342345 }
343346 } ) ;
@@ -354,30 +357,30 @@ export class DebugManager {
354357 public readonly extensionContext : vscode . ExtensionContext ,
355358 public readonly pythonManager : PythonManager ,
356359 public readonly languageClientsManager : LanguageClientsManager ,
357- public readonly outputChannel : vscode . OutputChannel
360+ public readonly outputChannel : vscode . OutputChannel ,
358361 ) {
359362 this . _disposables = vscode . Disposable . from (
360363 vscode . debug . registerDebugConfigurationProvider (
361364 "robotcode" ,
362- new RobotCodeDebugConfigurationProvider ( this . pythonManager )
365+ new RobotCodeDebugConfigurationProvider ( this . pythonManager ) ,
363366 ) ,
364367
365368 vscode . debug . registerDebugConfigurationProvider (
366369 "robotcode" ,
367370 {
368371 provideDebugConfigurations (
369372 _folder : vscode . WorkspaceFolder | undefined ,
370- _token ?: vscode . CancellationToken
373+ _token ?: vscode . CancellationToken ,
371374 ) : vscode . ProviderResult < vscode . DebugConfiguration [ ] > {
372375 return DEBUG_CONFIGURATIONS . map ( ( v ) => v . body ) ;
373376 } ,
374377 } ,
375- vscode . DebugConfigurationProviderTriggerKind . Dynamic
378+ vscode . DebugConfigurationProviderTriggerKind . Dynamic ,
376379 ) ,
377380
378381 vscode . debug . registerDebugAdapterDescriptorFactory (
379382 "robotcode" ,
380- new RobotCodeDebugAdapterDescriptorFactory ( this . pythonManager , this . outputChannel )
383+ new RobotCodeDebugAdapterDescriptorFactory ( this . pythonManager , this . outputChannel ) ,
381384 ) ,
382385
383386 vscode . debug . onDidReceiveDebugSessionCustomEvent ( async ( event ) => {
@@ -387,7 +390,7 @@ export class DebugManager {
387390 await DebugManager . OnDebugpyStarted (
388391 event . session ,
389392 event . event ,
390- event . body as { port : number ; addresses : undefined | string [ ] | null }
393+ event . body as { port : number ; addresses : undefined | string [ ] | null } ,
391394 ) ;
392395 break ;
393396 }
@@ -406,7 +409,7 @@ export class DebugManager {
406409 event . session ,
407410 body . outputFile as string ,
408411 body . logFile as string ,
409- body . reportFile as string
412+ body . reportFile as string ,
410413 ) ;
411414 break ;
412415 }
@@ -440,17 +443,17 @@ export class DebugManager {
440443 provideEvaluatableExpression (
441444 document : vscode . TextDocument ,
442445 position : vscode . Position ,
443- token : vscode . CancellationToken
446+ token : vscode . CancellationToken ,
444447 ) : vscode . ProviderResult < vscode . EvaluatableExpression > {
445448 return languageClientsManager . getEvaluatableExpression ( document , position , token ) . then (
446449 ( r ) => {
447450 if ( r ) return new vscode . EvaluatableExpression ( toVsCodeRange ( r . range ) , r . expression ) ;
448451 else return undefined ;
449452 } ,
450- ( _ ) => undefined
453+ ( _ ) => undefined ,
451454 ) ;
452455 } ,
453- } )
456+ } ) ,
454457 ) ;
455458 }
456459
@@ -468,7 +471,7 @@ export class DebugManager {
468471 runId ?: string ,
469472 options ?: vscode . DebugSessionOptions ,
470473 dryRun ?: boolean ,
471- topLevelSuiteName ?: string
474+ topLevelSuiteName ?: string ,
472475 ) : Promise < boolean > {
473476 const config = vscode . workspace . getConfiguration ( CONFIG_SECTION , folder ) ;
474477
@@ -512,7 +515,7 @@ export class DebugManager {
512515 ?. find (
513516 ( v ) =>
514517 v ?. type === "robotcode" &&
515- ( v ?. purpose === "test" || ( Array . isArray ( v ?. purpose ) && v ?. purpose ?. indexOf ( "test" ) > - 1 ) )
518+ ( v ?. purpose === "test" || ( Array . isArray ( v ?. purpose ) && v ?. purpose ?. indexOf ( "test" ) > - 1 ) ) ,
516519 ) ?? { } ;
517520
518521 if ( ! ( "target" in testLaunchConfig ) ) {
@@ -541,14 +544,14 @@ export class DebugManager {
541544 dryRun,
542545 } ,
543546 } ,
544- options
547+ options ,
545548 ) ;
546549 }
547550
548551 static async OnDebugpyStarted (
549552 session : vscode . DebugSession ,
550553 _event : string ,
551- options ?: { port : number ; addresses : undefined | string [ ] | null }
554+ options ?: { port : number ; addresses : undefined | string [ ] | null } ,
552555 ) : Promise < boolean > {
553556 if (
554557 session . type === "robotcode" &&
@@ -598,7 +601,7 @@ export class DebugManager {
598601 session : vscode . DebugSession ,
599602 _outputFile ?: string ,
600603 logFile ?: string ,
601- reportFile ?: string
604+ reportFile ?: string ,
602605 ) : Promise < void > {
603606 if ( session . configuration ?. openOutputAfterRun === "report" && reportFile ) {
604607 await this . languageClientsManager . openUriInDocumentationView ( vscode . Uri . file ( reportFile ) ) ;
0 commit comments