Skip to content

Commit

Permalink
Building... never stops (fix #214859) (#215409)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jun 13, 2024
1 parent e4caee4 commit d8abddc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/vs/workbench/services/progress/browser/progressService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ export class ProgressService extends Disposable implements IProgressService {
async withProgress<R = unknown>(options: IProgressOptions, originalTask: (progress: IProgress<IProgressStep>) => Promise<R>, onDidCancel?: (choice?: number) => void): Promise<R> {
const { location } = options;

const task = (progress: IProgress<IProgressStep>) => {
const task = async (progress: IProgress<IProgressStep>) => {
const activeLock = this.userActivityService.markActive();
return originalTask(progress).finally(() => activeLock.dispose());
try {
return await originalTask(progress);
} finally {
activeLock.dispose();
}
};

const handleStringLocation = (location: string) => {
Expand Down

0 comments on commit d8abddc

Please sign in to comment.