Come Trovare Fabbri per la Lavorazione del Corrimano in Ferro
Trovare Fabbri Specializzati nella Lavorazione del Corrimano in Ferro.
Scopri come trovare i migliori fabbri per la lavorazione del corrimano in ferro, un elemento essenziale per la sicurezza e l'estetica della tua casa. In questo articolo, esploreremo i vantaggi della lavorazione personalizzata e ti daremo consigli utili per scegliere il professionista giusto, garantendo risultati di qualità e duraturi.
Trova professionisti vicino a te
Trova professionisti
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import 'vs/css!./media/extensions';
import { localize } from 'vs/nls';
import { TPromise } from 'vs/base/common/winjs.base';
import { Action, IAction } from 'vs/base/common/actions';
import { Registry } from 'vs/platform/platform';
import { IWorkbenchActionRegistry, Extensions as ActionExtensions } from 'vs/workbench/common/actionRegistry';
import { IConfigurationRegistry, Extensions as ConfigurationExtensions } from 'vs/platform/configuration/common/configurationRegistry';
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions';
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
import { IViewletService } from 'vs/workbench/services/viewlet/browser/viewlet';
import { IExtensionService } from 'vs/platform/extensions/common/extensions';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { ShowRecommendedExtensionsAction, ShowPopularExtensionsAction, ShowInstalledExtensionsAction, ShowOutdatedExtensionsAction, ShowEnabledExtensionsAction, ShowDisabledExtensionsAction, ShowBuiltInExtensionsAction, ShowRecommendedKeymapExtensionsAction, InstallVSIXAction, ReinstallAction, DisableAllAction, EnableAllAction, CheckForUpdatesAction, InstallSpecificVersionOfExtensionAction } from './extensionsActions';
import { ExtensionsWorkbenchExtension, ExtensionTipsService } from './extensionsWorkbenchExtension';
import { IExtensionsWorkbenchService, IExtension, VIEWLET_ID, ShowExtensionsActionId, EXTENSIONS_CONFIG, CONFIG_SHOW_RECOMMENDATIONS, CONFIG_IGNORE_EXTENSIONS, CONFIG_SYNC_IGNORE_EXTENSIONS } from './extensions';
const actionRegistry = Registry.as(ActionExtensions.WorkbenchActions);
const configurationRegistry = Registry.as(ConfigurationExtensions.Configuration);
const workbenchRegistry = Registry.as(WorkbenchExtensions.Workbench);
// Register viewlet
workbenchRegistry.registerWorkbenchContribution(ExtensionsWorkbenchExtension);
// Register configuration
configurationRegistry.registerConfiguration({
'id': 'extensions',
'order': 30,
'title': localize('extensionsConfigurationTitle', "Extensions"),
'type': 'object',
'properties': EXTENSIONS_CONFIG
});
// Register Action to Open Viewlet
const openViewletActionDescriptor = new SyncActionDescriptor(ShowExtensionsAction, ShowExtensionsAction.ID, ShowExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(openViewletActionDescriptor, 'View: Show Extensions', localize('view', "View"));
// Register Action to Install Extension
const installActionDescriptor = new SyncActionDescriptor(InstallVSIXAction, InstallVSIXAction.ID, InstallVSIXAction.LABEL);
actionRegistry.registerWorkbenchAction(installActionDescriptor, 'Extensions: Install', localize('developer', "Developer"));
// Register Action to Reinstall Extension
const reinstallActionDescriptor = new SyncActionDescriptor(ReinstallAction, ReinstallAction.ID, ReinstallAction.LABEL);
actionRegistry.registerWorkbenchAction(reinstallActionDescriptor, 'Extensions: Reinstall', localize('developer', "Developer"));
// Register Action to Install Specific Version
const installVersionActionDescriptor = new SyncActionDescriptor(InstallSpecificVersionOfExtensionAction, InstallSpecificVersionOfExtensionAction.ID, InstallSpecificVersionOfExtensionAction.LABEL);
actionRegistry.registerWorkbenchAction(installVersionActionDescriptor, 'Extensions: Install Version', localize('developer', "Developer"));
// Register Action to Show Recommendations
const showRecommendationsActionDescriptor = new SyncActionDescriptor(ShowRecommendedExtensionsAction, ShowRecommendedExtensionsAction.ID, ShowRecommendedExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showRecommendationsActionDescriptor, 'Extensions: Show Recommended Extensions', localize('extensions', "Extensions"));
// Register Action to Show Popular
const showPopularActionDescriptor = new SyncActionDescriptor(ShowPopularExtensionsAction, ShowPopularExtensionsAction.ID, ShowPopularExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showPopularActionDescriptor, 'Extensions: Show Popular Extensions', localize('extensions', "Extensions"));
// Register Action to Show Installed
const showInstalledActionDescriptor = new SyncActionDescriptor(ShowInstalledExtensionsAction, ShowInstalledExtensionsAction.ID, ShowInstalledExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showInstalledActionDescriptor, 'Extensions: Show Installed Extensions', localize('extensions', "Extensions"));
// Register Action to Show Outdated
const showOutdatedActionDescriptor = new SyncActionDescriptor(ShowOutdatedExtensionsAction, ShowOutdatedExtensionsAction.ID, ShowOutdatedExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showOutdatedActionDescriptor, 'Extensions: Show Outdated Extensions', localize('extensions', "Extensions"));
// Register Action to Show Disabled
const showDisabledActionDescriptor = new SyncActionDescriptor(ShowDisabledExtensionsAction, ShowDisabledExtensionsAction.ID, ShowDisabledExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showDisabledActionDescriptor, 'Extensions: Show Disabled Extensions', localize('extensions', "Extensions"));
// Register Action to Show Enabled
const showEnabledActionDescriptor = new SyncActionDescriptor(ShowEnabledExtensionsAction, ShowEnabledExtensionsAction.ID, ShowEnabledExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showEnabledActionDescriptor, 'Extensions: Show Enabled Extensions', localize('extensions', "Extensions"));
// Register Action to Show Builtin
const showBuiltInActionDescriptor = new SyncActionDescriptor(ShowBuiltInExtensionsAction, ShowBuiltInExtensionsAction.ID, ShowBuiltInExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showBuiltInActionDescriptor, 'Extensions: Show Built-in Extensions', localize('extensions', "Extensions"));
// Register Action to Show Recommended Keymaps
const showRecommendedKeymapsActionDescriptor = new SyncActionDescriptor(ShowRecommendedKeymapExtensionsAction, ShowRecommendedKeymapExtensionsAction.ID, ShowRecommendedKeymapExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showRecommendedKeymapsActionDescriptor, 'Extensions: Show Recommended Keymaps', localize('extensions', "Extensions"));
// Register Action to Check for Updates
const checkForUpdatesActionDescriptor = new SyncActionDescriptor(CheckForUpdatesAction, CheckForUpdatesAction.ID, CheckForUpdatesAction.LABEL);
actionRegistry.registerWorkbenchAction(checkForUpdatesActionDescriptor, 'Extensions: Check for Updates', localize('extensions', "Extensions"));
// Register Action to Disable All
const disableAllActionDescriptor = new SyncActionDescriptor(DisableAllAction, DisableAllAction.ID, DisableAllAction.LABEL);
actionRegistry.registerWorkbenchAction(disableAllActionDescriptor, 'Extensions: Disable All Installed Extensions', localize('extensions', "Extensions"));
// Register Action to Enable All
const enableAllActionDescriptor = new SyncActionDescriptor(EnableAllAction, EnableAllAction.ID, EnableAllAction.LABEL);
actionRegistry.registerWorkbenchAction(enableAllActionDescriptor, 'Extensions: Enable All Installed Extensions', localize('extensions', "Extensions"));
class OpenExtensionsViewletAction extends Action {
public static ID = VIEWLET_ID;
public static LABEL = localize('toggleExtensionsViewlet', "Show Extensions");
constructor(
id: string,
label: string,
@IViewletService private viewletService: IViewletService
) {
super(id, label);
}
public run(): TPromise {
return this.viewletService.openViewlet(VIEWLET_ID, true);
}
}
const action = new SyncActionDescriptor(OpenExtensionsViewletAction, OpenExtensionsViewletAction.ID, OpenExtensionsViewletAction.LABEL);
actionRegistry.registerWorkbenchAction(action, 'View: Show Extensions', localize('view', "View"));
// Register Global Activity Actions
const activityRegistry = Registry.as(ActionExtensions.WorkbenchActions);
activityRegistry.registerActivityAction(new SyncActionDescriptor(ShowInstalledExtensionsAction, ShowInstalledExtensionsAction.ID, ShowInstalledExtensionsAction.LABEL, { primary: true }), 'extensions-workbench-installed');
activityRegistry.registerActivityAction(new SyncActionDescriptor(ShowOutdatedExtensionsAction, ShowOutdatedExtensionsAction.ID, ShowOutdatedExtensionsAction.LABEL), 'extensions-workbench-outdated');
activityRegistry.registerActivityAction(new SyncActionDescriptor(ShowEnabledExtensionsAction, ShowEnabledExtensionsAction.ID, ShowEnabledExtensionsAction.LABEL), 'extensions-workbench-enabled');
activityRegistry.registerActivityAction(new SyncActionDescriptor(ShowDisabledExtensionsAction, ShowDisabledExtensionsAction.ID, ShowDisabledExtensionsAction.LABEL), 'extensions-workbench-disabled');
activityRegistry.registerActivityAction(new SyncActionDescriptor(ShowBuiltInExtensionsAction, ShowBuiltInExtensionsAction.ID, ShowBuiltInExtensionsAction.LABEL), 'extensions-workbench-builtin');
// Register Extension Tips Service
Registry.as(WorkbenchExtensions.Workbench).registerWorkbenchContribution(ExtensionTipsService);
// Register Extension Viewlet to Quick Open
class OpenExtensionsViewletActionFromQuickOpen extends Action {
public static ID = 'workbench.extensions.action.openExtensionsViewlet';
public static LABEL = localize('openExtensionsViewletFromQuickOpen', "Manage Extensions");
constructor(
id: string,
label: string,
@IViewletService private viewletService: IViewletService
) {
super(id, label);
}
public run(): TPromise {
return this.viewletService.openViewlet(VIEWLET_ID, true);
}
}
const openExtensionsViewletActionFromQuickOpen = new OpenExtensionsViewletActionFromQuickOpen(OpenExtensionsViewletActionFromQuickOpen.ID, OpenExtensionsViewletActionFromQuickOpen.LABEL);
Registry.as(ActionExtensions.WorkbenchActions).registerWorkbenchAction(openExtensionsViewletActionFromQuickOpen, 'Manage Extensions', localize('manage', "Manage"));
// Show Ignored Extensions
class ShowIgnoredExtensionsAction extends Action {
public static ID = 'workbench.extensions.action.listIgnoredExtensions';
public static LABEL = localize('showIgnoredExtensions', "Show Ignored Extensions");
constructor(
id: string,
label: string,
@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
) {
super(id, label);
this.enabled = !!this.extensionsWorkbenchService.local.filter(l => l.type === IExtension.Type.User && l.isMalicious).length;
}
public run(): TPromise {
return this.extensionsWorkbenchService.queryLocal()
.then(local => local.filter(l => l.type === IExtension.Type.User && l.isMalicious))
.then(malicious => this.extensionsWorkbenchService.openExtensions(malicious.map(e => e.id)));
}
}
const showIgnoredExtensionsAction = new ShowIgnoredExtensionsAction(ShowIgnoredExtensionsAction.ID, ShowIgnoredExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showIgnoredExtensionsAction, 'Extensions: Show Ignored Extensions', localize('extensions', "Extensions"));
// Show Recommended Extensions as Starred
class ShowRecommendedExtensionsAction extends Action {
public static ID = 'workbench.extensions.action.showRecommendedExtensions';
public static LABEL = localize('showRecommendedExtensions', "Show Recommended Extensions");
constructor(
id: string,
label: string,
@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
) {
super(id, label);
}
public run(): TPromise {
return this.extensionsWorkbenchService.queryLocal()
.then(local => local.filter(l => l.type === IExtension.Type.User && l.recommendations.length > 0))
.then(suggested => this.extensionsWorkbenchService.openExtensions(suggested.map(e => e.id)));
}
}
const showRecommendedExtensionsAction = new ShowRecommendedExtensionsAction(ShowRecommendedExtensionsAction.ID, ShowRecommendedExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showRecommendedExtensionsAction, 'Extensions: Show Recommended Extensions', localize('extensions', "Extensions"));
// Show Workspace Recommended Extensions as Starred
class ShowWorkspaceRecommendedExtensionsAction extends Action {
public static ID = 'workbench.extensions.action.showWorkspaceRecommendedExtensions';
public static LABEL = localize('showWorkspaceRecommendedExtensions', "Show Workspace Recommended Extensions");
constructor(
id: string,
label: string,
@IExtensionsWorkbenchService private extensionsWorkbenchService: IExtensionsWorkbenchService
) {
super(id, label);
}
public run(): TPromise {
return this.extensionsWorkbenchService.queryLocal()
.then(local => local.filter(l => l.type === IExtension.Type.User && l.workspaceRecommendations.length > 0))
.then(suggested => this.extensionsWorkbenchService.openExtensions(suggested.map(e => e.id)));
}
}
const showWorkspaceRecommendedExtensionsAction = new ShowWorkspaceRecommendedExtensionsAction(ShowWorkspaceRecommendedExtensionsAction.ID, ShowWorkspaceRecommendedExtensionsAction.LABEL);
actionRegistry.registerWorkbenchAction(showWorkspaceRecommendedExtensionsAction, 'Extensions: Show Workspace Recommended Extensions', localize('extensions', "Extensions"));
// Install VSIX file command
CommandsRegistry.registerCommand('extensions.install', function (accessor: ServicesAccessor, vsixPath: string) {
const instantiationService = accessor.get(IInstantiationService);
const extensionService = accessor.get(IExtensionService);
instantiationService.createInstance(InstallVSIXAction, InstallVSIXAction.ID, InstallVSIXAction.LABEL).run(vsixPath).done(null, err => extensionService.error(err));
});