Skip to content

Commit 7672dba

Browse files
authored
Check for onDidChangeExtensions before fetching commands (microsoft#183275)
Check for onDidChangeExtensions
1 parent fad1dba commit 7672dba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/contrib/remote/browser/remoteStartEntry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ export class RemoteStartEntry extends Disposable implements IWorkbenchContributi
162162
}
163163

164164
private registerListeners(): void {
165-
this._register(this.extensionManagementService.onDidInstallExtensions(async (result) => {
166-
for (const ext of result) {
167-
const index = this.remoteExtensionMetadata.findIndex(value => ExtensionIdentifier.equals(value.id, ext.identifier.id));
165+
this._register(this.extensionService.onDidChangeExtensions(async (result) => {
166+
for (const ext of result.added) {
167+
const index = this.remoteExtensionMetadata.findIndex(value => ExtensionIdentifier.equals(value.id, ext.identifier));
168168
if (index > -1) {
169169
this.remoteExtensionMetadata[index].installed = true;
170-
this.remoteExtensionMetadata[index].remoteCommands = await this.getRemoteCommands(ext.identifier.id);
170+
this.remoteExtensionMetadata[index].remoteCommands = await this.getRemoteCommands(ext.identifier.value);
171171
}
172172
}
173173
}));

0 commit comments

Comments
 (0)