mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
normalize sql carbon tag (#14445)
This commit is contained in:
@@ -572,7 +572,7 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
|
||||
return galleryExtensions.map((e, index) => toExtension(e, e.versions[0], index, nextPageQuery, options.source));
|
||||
};
|
||||
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
return { firstPage: extensions, total, pageSize: extensions.length, getPage } as IPager<IGalleryExtension>;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
|
||||
const manifest = await getManifest(zipPath);
|
||||
const identifier = { id: getGalleryExtensionId(manifest.publisher, manifest.name) };
|
||||
// let operation: InstallOperation = InstallOperation.Install; {{ SQL CARBON EDIT }}
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
if (manifest.engines?.vscode && !isEngineValid(manifest.engines.vscode, product.vscodeVersion)) {
|
||||
throw new Error(nls.localize('incompatible', "Unable to install extension '{0}' as it is not compatible with the current VS Code engine version '{1}'.", identifier.id, product.vscodeVersion));
|
||||
}
|
||||
@@ -213,7 +213,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
|
||||
},
|
||||
error => { this._onDidInstallExtension.fire({ identifier, zipPath, error, operation: InstallOperation.Install }); return Promise.reject(error); }
|
||||
);
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
// let metadata: IGalleryMetadata | undefined;
|
||||
// try {
|
||||
// metadata = await this.getGalleryMetadata(getGalleryExtensionId(manifest.publisher, manifest.name));
|
||||
@@ -242,7 +242,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
|
||||
return downloadedLocation;
|
||||
}
|
||||
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
/*private async installFromZipPath(identifierWithVersion: ExtensionIdentifierWithVersion, zipPath: string, metadata: IMetadata | undefined, operation: InstallOperation, token: CancellationToken): Promise<ILocalExtension> {
|
||||
try {
|
||||
const local = await this.installExtension({ zipPath, identifierWithVersion, metadata }, token);
|
||||
@@ -521,7 +521,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
|
||||
return local;
|
||||
}
|
||||
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
/*private async getGalleryMetadata(extensionName: string): Promise<IGalleryMetadata | undefined> {
|
||||
const galleryExtension = await this.findGalleryExtensionByName(extensionName);
|
||||
return galleryExtension ? <IGalleryMetadata>{ id: galleryExtension.identifier.uuid, publisherDisplayName: galleryExtension.publisherDisplayName, publisherId: galleryExtension.publisherId } : undefined;
|
||||
|
||||
Reference in New Issue
Block a user