Change:
this._onDidInstallExtensions.fire(allInstallExtensionTasks.map(({ task }) => ({ identifier: task.identifier, operation: InstallOperation.Install, source: task.source, context: options.context, profileLocation: options.profileLocation }))); throw error; } finally { <del> /* Remove the gallery tasks from the cache */ for (const { task } of allInstallExtensionTasks) { if (!URI.isUri(task.source)) { const key = getInstallExtensionTaskKey(task.source); if (!this.installingExtensions.delete(key)) { this.logService.warn('Installation task is not found in the cache', key); } </del> <ins> for (const [key, { task, waitingTasks }] of this.installingExtensions.entries()) { const index = waitingTasks.indexOf(installExtensionTask); if (index !== -1) { /* Current task was waiting for this task */ waitingTasks.splice(index, 1); } if (waitingTasks.length === 0 // No tasks are waiting for this task && (task === installExtensionTask || index !== -1)) { this.installingExtensions.delete(key); </ins> } } } } <ins> private canWaitForTask(taskToWait: IInstallExtensionTask, taskToWaitFor: IInstallExtensionTask): boolean { for (const [, { task, waitingTasks }] of this.installingExtensions.entries()) { // Cannot be waited, If taskToWaitFor is waiting for taskToWait if (task === taskToWait && waitingTasks.includes(taskToWaitFor)) { return false; } // Cannot be waited, if the taskToWait cannot be waited for the task created the taskToWaitFor if (task === taskToWaitFor && waitingTasks[0] && !this.canWaitForTask(taskToWait, waitingTasks[0])) { return false; } } return true; } </ins> private async joinAllSettled<T>(promises: Promise<T>[]): Promise<T[]> { const results: T[] = []; const errors: any[] = [];

Discussion:
VS Code Version: stable and from sources When launching the server and installing extensions using that have a common dependency, one of the extensions will fail activating, prompting to reload VS Code. For example installing, and contains which depends on also depends on installation task finishes first and then trying to activate fails as for installation which is part of installation task Steps to Reproduce: this branch in gitpod or codespaces will fail activating and a notification shows prompting to reload vscode <img width="448" alt="error_iamge" src="https://user-"cc
would you accept a PR fixing this? I took a look but it doesn't look something trivial to fix properly, I but I don't think is a good fix
PR would be always welcome. Agreed it is not trivial. Let's see if there is a simple fix that fixes this and won't cause any regressions.
Created a PR with a possible fix
ping, by any chance for July
I am sorry that I am on vacation so cannot be looked in July.
I was following this other , but it was marked as a duplicate and was therefore closed. This isse seems to be closed as well, although the issue persists. Specifically, it seems that VS Code Dev Containers installs extensions in alphabetical order, so that if an extension that comes later in the order is a pre-requisite for another that is earlier, then the installations will not behave as expected. Example, is a pre-requisite for , but comes later in alphabetical order. Thus, requires a VS Code Session restart after building the Dev Container. Is this issue fixed in VS Code Insiders, but not released yet?
The issue you reported is using the build 1.71. and this fix was pushed in 1.72.. So please update your VS Code and try.