mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
committed by
GitHub
parent
35d97bc7e4
commit
e1f27e691f
@@ -599,7 +599,13 @@ export class ExtensionsScanner extends Disposable {
|
||||
metadata = { ...source?.metadata, ...metadata };
|
||||
|
||||
if (target) {
|
||||
await this.extensionsProfileScannerService.updateMetadata([[extension, { ...target.metadata, ...metadata }]], toProfileLocation);
|
||||
if (this.uriIdentityService.extUri.isEqual(target.location, extension.location)) {
|
||||
await this.extensionsProfileScannerService.updateMetadata([[extension, { ...target.metadata, ...metadata }]], toProfileLocation);
|
||||
} else {
|
||||
const targetExtension = await this.scanLocalExtension(target.location, extension.type, toProfileLocation);
|
||||
await this.extensionsProfileScannerService.removeExtensionFromProfile(targetExtension, toProfileLocation);
|
||||
await this.extensionsProfileScannerService.addExtensionsToProfile([[extension, { ...target.metadata, ...metadata }]], toProfileLocation);
|
||||
}
|
||||
} else {
|
||||
await this.extensionsProfileScannerService.addExtensionsToProfile([[extension, metadata]], toProfileLocation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user