@@ -277,12 +277,12 @@ class DebuggerSession {
277
277
}
278
278
279
279
export class DebuggerFixture extends PythonFixture {
280
- public resolveDebugger (
280
+ public async resolveDebugger (
281
281
configName : string ,
282
282
file : string ,
283
283
scriptArgs : string [ ] ,
284
284
wsRoot ?: vscode . WorkspaceFolder ,
285
- ) : DebuggerSession {
285
+ ) : Promise < DebuggerSession > {
286
286
const config = getConfig ( configName ) ;
287
287
let proc : Proc | undefined ;
288
288
if ( config . request === 'launch' ) {
@@ -292,7 +292,7 @@ export class DebuggerFixture extends PythonFixture {
292
292
// XXX set the file in the current vscode editor?
293
293
} else if ( config . request === 'attach' ) {
294
294
if ( config . port ) {
295
- proc = this . runDebugger ( config . port , file , ...scriptArgs ) ;
295
+ proc = await this . runDebugger ( config . port , file , ...scriptArgs ) ;
296
296
if ( wsRoot && config . name === 'attach to a local port' ) {
297
297
config . pathMappings . localRoot = wsRoot . uri . fsPath ;
298
298
}
@@ -352,8 +352,8 @@ export class DebuggerFixture extends PythonFixture {
352
352
}
353
353
}
354
354
355
- public runDebugger ( port : number , filename : string , ...scriptArgs : string [ ] ) {
356
- const args = getDebugpyLauncherArgs ( {
355
+ public async runDebugger ( port : number , filename : string , ...scriptArgs : string [ ] ) {
356
+ const args = await getDebugpyLauncherArgs ( {
357
357
host : 'localhost' ,
358
358
port : port ,
359
359
// This causes problems if we set it to true.
0 commit comments