Skip to content

Commit 3cae7b1

Browse files
authored
microsoft#223511 - update workspace extensions on workspace folders change (microsoft#223574)
1 parent 0c5a528 commit 3cae7b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export class WorkspaceRecommendations extends ExtensionRecommendations {
5555
this._register(this.fileService.watch(this.uriIdentityService.extUri.joinPath(folder.uri, WORKSPACE_EXTENSIONS_FOLDER)));
5656
}
5757

58+
this._register(this.contextService.onDidChangeWorkspaceFolders(() => this.onDidChangeWorkspaceExtensionsScheduler.schedule()));
59+
5860
this._register(this.fileService.onDidFilesChange(e => {
5961
if (this.contextService.getWorkspace().folders.some(folder =>
6062
e.affects(this.uriIdentityService.extUri.joinPath(folder.uri, WORKSPACE_EXTENSIONS_FOLDER), FileChangeType.ADDED, FileChangeType.DELETED))

0 commit comments

Comments
 (0)