Skip to content

Commit 9ca413b

Browse files
bpaseroalexdima
andauthored
Restore version check (microsoft#190042) (microsoft#190074)
Co-authored-by: Alexandru Dima <[email protected]>
1 parent fc85e5e commit 9ca413b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/extensionManagement/common/extensionsProfileScannerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export abstract class AbstractExtensionsProfileScannerService extends Disposable
127127
await this.withProfileExtensions(profileLocation, profileExtensions => {
128128
const result: IScannedProfileExtension[] = [];
129129
for (const extension of profileExtensions) {
130-
if (extensions.some(([e]) => areSameExtensions(e.identifier, extension.identifier))) {
131-
// Remove the existing extension
130+
if (extensions.some(([e]) => areSameExtensions(e.identifier, extension.identifier) && e.manifest.version !== extension.version)) {
131+
// Remove the existing extension with different version
132132
extensionsToRemove.push(extension);
133133
} else {
134134
result.push(extension);

0 commit comments

Comments
 (0)