@@ -47,7 +47,7 @@ import { IProductService } from 'vs/platform/product/common/productService';
47
47
import { DomEmitter } from 'vs/base/browser/event' ;
48
48
import { registerColor } from 'vs/platform/theme/common/colorRegistry' ;
49
49
import { ExtensionIdentifier } from 'vs/platform/extensions/common/extensions' ;
50
- import { CancellationToken , CancellationTokenSource } from 'vs/base/common/cancellation' ;
50
+ import { CancellationToken } from 'vs/base/common/cancellation' ;
51
51
import { ThemeIcon } from 'vs/base/common/themables' ;
52
52
import { infoIcon } from 'vs/workbench/contrib/extensions/browser/extensionsIcons' ;
53
53
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
@@ -325,22 +325,18 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
325
325
for ( let i = 0 ; i < this . remoteExtensionMetadata . length ; i ++ ) {
326
326
const extensionId = this . remoteExtensionMetadata [ i ] . id ;
327
327
const supportedPlatforms = this . remoteExtensionMetadata [ i ] . supportedPlatforms ;
328
- // Update compatibility
329
- const token = new CancellationTokenSource ( ) ;
330
- const galleryExtension = ( await this . extensionGalleryService . getExtensions ( [ { id : extensionId } ] , token . token ) ) [ 0 ] ;
331
- if ( ! await this . extensionManagementService . canInstall ( galleryExtension ) ) {
332
- this . remoteExtensionMetadata [ i ] . isPlatformCompatible = false ;
328
+ const isInstalled = ( await this . extensionManagementService . getInstalled ( ) ) . find ( value => ExtensionIdentifier . equals ( value . identifier . id , extensionId ) ) ? true : false ;
329
+
330
+ this . remoteExtensionMetadata [ i ] . installed = isInstalled ;
331
+ if ( isInstalled ) {
332
+ this . remoteExtensionMetadata [ i ] . isPlatformCompatible = true ;
333
333
}
334
334
else if ( supportedPlatforms && ! supportedPlatforms . includes ( currentPlatform ) ) {
335
335
this . remoteExtensionMetadata [ i ] . isPlatformCompatible = false ;
336
336
}
337
337
else {
338
338
this . remoteExtensionMetadata [ i ] . isPlatformCompatible = true ;
339
- this . remoteExtensionMetadata [ i ] . dependencies = galleryExtension . properties . extensionPack ?? [ ] ;
340
339
}
341
-
342
- // Check if installed and enabled
343
- this . remoteExtensionMetadata [ i ] . installed = ( await this . extensionManagementService . getInstalled ( ) ) . find ( value => ExtensionIdentifier . equals ( value . identifier . id , extensionId ) ) ? true : false ;
344
340
}
345
341
346
342
this . remoteMetadataInitialized = true ;
0 commit comments