mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue