mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 09:38:26 -05:00
Merge vscode source through 1.62 release (#19981)
* Build breaks 1 * Build breaks * Build breaks * Build breaks * More build breaks * Build breaks (#2512) * Runtime breaks * Build breaks * Fix dialog location break * Update typescript * Fix ASAR break issue * Unit test breaks * Update distro * Fix breaks in ADO builds (#2513) * Bump to node 16 * Fix hygiene errors * Bump distro * Remove reference to node type * Delete vscode specific extension * Bump to node 16 in CI yaml * Skip integration tests in CI builds (while fixing) * yarn.lock update * Bump moment dependency in remote yarn * Fix drop-down chevron style * Bump to node 16 * Remove playwrite from ci.yaml * Skip building build scripts in hygine check
This commit is contained in:
@@ -7,7 +7,7 @@ import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { IWorkbenchActionRegistry, Extensions as WorkbenchActionExtensions } from 'vs/workbench/common/actions';
|
||||
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
|
||||
import { ExtensionsLabel, IExtensionGalleryService, IGalleryExtension } from 'vs/platform/extensionManagement/common/extensionManagement';
|
||||
import { ExtensionsLabel, IExtensionGalleryService, IGalleryExtension, TargetPlatform } from 'vs/platform/extensionManagement/common/extensionManagement';
|
||||
import { OpenExtensionAuthoringDocsAction } from 'sql/workbench/contrib/extensions/browser/extensionsActions';
|
||||
import { localize } from 'vs/nls';
|
||||
import { deepClone } from 'vs/base/common/objects';
|
||||
@@ -41,7 +41,7 @@ CommandsRegistry.registerCommand({
|
||||
},
|
||||
handler: async (accessor, arg: string): Promise<IGalleryExtension> => {
|
||||
const extensionGalleryService = accessor.get(IExtensionGalleryService);
|
||||
const extension = await extensionGalleryService.getCompatibleExtension({ id: arg });
|
||||
const extension = await extensionGalleryService.getCompatibleExtension({ id: arg }, TargetPlatform.UNIVERSAL);
|
||||
if (extension) {
|
||||
return deepClone(extension);
|
||||
} else {
|
||||
|
||||
@@ -5,13 +5,14 @@
|
||||
|
||||
import { localize } from 'vs/nls';
|
||||
import { Action } from 'vs/base/common/actions';
|
||||
import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet';
|
||||
import { IExtensionsWorkbenchService, VIEWLET_ID, IExtensionsViewPaneContainer } from 'vs/workbench/contrib/extensions/common/extensions';
|
||||
import { IExtensionRecommendation } from 'sql/workbench/services/extensionManagement/common/extensionManagement';
|
||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { CancellationToken } from 'vs/base/common/cancellation';
|
||||
import { PagedModel } from 'vs/base/common/paging';
|
||||
import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite';
|
||||
import { ViewContainerLocation } from 'vs/workbench/common/views';
|
||||
|
||||
function getScenarioID(scenarioType: string) {
|
||||
return 'workbench.extensions.action.show' + scenarioType;
|
||||
@@ -20,13 +21,13 @@ function getScenarioID(scenarioType: string) {
|
||||
export class ShowRecommendedExtensionsByScenarioAction extends Action {
|
||||
constructor(
|
||||
private readonly scenarioType: string,
|
||||
@IViewletService private readonly viewletService: IViewletService
|
||||
@IPaneCompositePartService private readonly viewletService: IPaneCompositePartService
|
||||
) {
|
||||
super(getScenarioID(scenarioType), localize('showRecommendations', "Show Recommendations"), undefined, true);
|
||||
}
|
||||
|
||||
override run(): Promise<void> {
|
||||
return this.viewletService.openViewlet(VIEWLET_ID, true)
|
||||
return this.viewletService.openPaneComposite(VIEWLET_ID, ViewContainerLocation.Sidebar, true)
|
||||
.then(viewlet => viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer)
|
||||
.then(viewlet => {
|
||||
viewlet.search('@' + this.scenarioType);
|
||||
@@ -43,7 +44,7 @@ export class InstallRecommendedExtensionsByScenarioAction extends Action {
|
||||
constructor(
|
||||
private readonly scenarioType: string,
|
||||
recommendations: IExtensionRecommendation[],
|
||||
@IViewletService private readonly viewletService: IViewletService,
|
||||
@IPaneCompositePartService private readonly viewletService: IPaneCompositePartService,
|
||||
@IExtensionsWorkbenchService private readonly extensionWorkbenchService: IExtensionsWorkbenchService
|
||||
) {
|
||||
super(getScenarioID(scenarioType), localize('Install Extensions', "Install Extensions"), 'extension-action');
|
||||
@@ -52,7 +53,7 @@ export class InstallRecommendedExtensionsByScenarioAction extends Action {
|
||||
|
||||
override async run(): Promise<void> {
|
||||
if (!this.recommendations.length) { return; }
|
||||
const viewlet = await this.viewletService.openViewlet(VIEWLET_ID, true);
|
||||
const viewlet = await this.viewletService.openPaneComposite(VIEWLET_ID, ViewContainerLocation.Sidebar, true);
|
||||
const viewPaneContainer = viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer;
|
||||
viewPaneContainer.search('@' + this.scenarioType);
|
||||
viewlet.focus();
|
||||
|
||||
Reference in New Issue
Block a user