mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
fixes #83992
This commit is contained in:
@@ -290,7 +290,7 @@ export class DebugService implements IDebugService {
|
||||
"Compound must have \"configurations\" attribute set in order to start multiple configurations."));
|
||||
}
|
||||
if (compound.preLaunchTask) {
|
||||
const taskResult = await this.taskRunner.runTaskAndCheckErrors(launch?.workspace || this.contextService.getWorkspace(), compound.preLaunchTask, this.showError);
|
||||
const taskResult = await this.taskRunner.runTaskAndCheckErrors(launch?.workspace || this.contextService.getWorkspace(), compound.preLaunchTask, (msg, actions) => this.showError(msg, actions));
|
||||
if (taskResult === TaskRunResult.Failure) {
|
||||
this.endInitializingState();
|
||||
return false;
|
||||
@@ -410,8 +410,8 @@ export class DebugService implements IDebugService {
|
||||
return false;
|
||||
}
|
||||
|
||||
const workspace = launch ? launch.workspace : this.contextService.getWorkspace();
|
||||
const taskResult = await this.taskRunner.runTaskAndCheckErrors(workspace, resolvedConfig.preLaunchTask, this.showError);
|
||||
const workspace = launch?.workspace || this.contextService.getWorkspace();
|
||||
const taskResult = await this.taskRunner.runTaskAndCheckErrors(workspace, resolvedConfig.preLaunchTask, (msg, actions) => this.showError(msg, actions));
|
||||
if (taskResult === TaskRunResult.Success) {
|
||||
return this.doCreateSession(launch?.workspace, { resolved: resolvedConfig, unresolved: unresolvedConfig }, options);
|
||||
}
|
||||
@@ -591,7 +591,7 @@ export class DebugService implements IDebugService {
|
||||
}
|
||||
|
||||
await this.taskRunner.runTask(session.root, session.configuration.postDebugTask);
|
||||
return this.taskRunner.runTaskAndCheckErrors(session.root, session.configuration.preLaunchTask, this.showError);
|
||||
return this.taskRunner.runTaskAndCheckErrors(session.root, session.configuration.preLaunchTask, (msg, actions) => this.showError(msg, actions));
|
||||
};
|
||||
|
||||
const extensionDebugSession = getExtensionHostDebugSession(session);
|
||||
|
||||
Reference in New Issue
Block a user