mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 00:30:29 -04:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -146,8 +146,8 @@ export abstract class ExtensionAction extends Action implements IExtensionContai
|
||||
|
||||
export class InstallAction extends ExtensionAction {
|
||||
|
||||
private static INSTALL_LABEL = localize('install', "Install");
|
||||
private static INSTALLING_LABEL = localize('installing', "Installing");
|
||||
private static readonly INSTALL_LABEL = localize('install', "Install");
|
||||
private static readonly INSTALLING_LABEL = localize('installing', "Installing");
|
||||
|
||||
private static readonly Class = 'extension-action prominent install';
|
||||
private static readonly InstallingClass = 'extension-action install installing';
|
||||
@@ -289,8 +289,8 @@ export class InstallAction extends ExtensionAction {
|
||||
|
||||
export abstract class InstallInOtherServerAction extends ExtensionAction {
|
||||
|
||||
protected static INSTALL_LABEL = localize('install', "Install");
|
||||
protected static INSTALLING_LABEL = localize('installing', "Installing");
|
||||
protected static readonly INSTALL_LABEL = localize('install', "Install");
|
||||
protected static readonly INSTALLING_LABEL = localize('installing', "Installing");
|
||||
|
||||
private static readonly Class = 'extension-action prominent install';
|
||||
private static readonly InstallingClass = 'extension-action install installing';
|
||||
@@ -586,7 +586,7 @@ export class ExtensionActionViewItem extends ActionViewItem {
|
||||
updateEnabled(): void {
|
||||
super.updateEnabled();
|
||||
|
||||
if (this.options.tabOnlyOnFocus && this.getAction().enabled && !this._hasFocus) {
|
||||
if (this.label && this.options.tabOnlyOnFocus && this.getAction().enabled && !this._hasFocus) {
|
||||
DOM.removeTabIndexAndUpdateFocus(this.label);
|
||||
}
|
||||
}
|
||||
@@ -597,7 +597,7 @@ export class ExtensionActionViewItem extends ActionViewItem {
|
||||
return;
|
||||
}
|
||||
this._hasFocus = value;
|
||||
if (this.getAction().enabled) {
|
||||
if (this.label && this.getAction().enabled) {
|
||||
if (this._hasFocus) {
|
||||
this.label.tabIndex = 0;
|
||||
} else {
|
||||
@@ -746,7 +746,7 @@ export class ManageExtensionAction extends ExtensionDropDownAction {
|
||||
export class InstallAnotherVersionAction extends ExtensionAction {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.install.anotherVersion';
|
||||
static LABEL = localize('install another version', "Install Another Version...");
|
||||
static readonly LABEL = localize('install another version', "Install Another Version...");
|
||||
|
||||
constructor(
|
||||
@IExtensionsWorkbenchService private readonly extensionsWorkbenchService: IExtensionsWorkbenchService,
|
||||
@@ -852,7 +852,7 @@ export class ExtensionSettingsAction extends ExtensionAction {
|
||||
export class EnableForWorkspaceAction extends ExtensionAction {
|
||||
|
||||
static readonly ID = 'extensions.enableForWorkspace';
|
||||
static LABEL = localize('enableForWorkspaceAction', "Enable (Workspace)");
|
||||
static readonly LABEL = localize('enableForWorkspaceAction', "Enable (Workspace)");
|
||||
|
||||
constructor(
|
||||
@IExtensionsWorkbenchService private readonly extensionsWorkbenchService: IExtensionsWorkbenchService,
|
||||
@@ -879,7 +879,7 @@ export class EnableForWorkspaceAction extends ExtensionAction {
|
||||
export class EnableGloballyAction extends ExtensionAction {
|
||||
|
||||
static readonly ID = 'extensions.enableGlobally';
|
||||
static LABEL = localize('enableGloballyAction', "Enable");
|
||||
static readonly LABEL = localize('enableGloballyAction', "Enable");
|
||||
|
||||
constructor(
|
||||
@IExtensionsWorkbenchService private readonly extensionsWorkbenchService: IExtensionsWorkbenchService,
|
||||
@@ -906,7 +906,7 @@ export class EnableGloballyAction extends ExtensionAction {
|
||||
export class DisableForWorkspaceAction extends ExtensionAction {
|
||||
|
||||
static readonly ID = 'extensions.disableForWorkspace';
|
||||
static LABEL = localize('disableForWorkspaceAction', "Disable (Workspace)");
|
||||
static readonly LABEL = localize('disableForWorkspaceAction', "Disable (Workspace)");
|
||||
|
||||
constructor(readonly runningExtensions: IExtensionDescription[],
|
||||
@IWorkspaceContextService private readonly workspaceContextService: IWorkspaceContextService,
|
||||
@@ -934,7 +934,7 @@ export class DisableForWorkspaceAction extends ExtensionAction {
|
||||
export class DisableGloballyAction extends ExtensionAction {
|
||||
|
||||
static readonly ID = 'extensions.disableGlobally';
|
||||
static LABEL = localize('disableGloballyAction', "Disable");
|
||||
static readonly LABEL = localize('disableGloballyAction', "Disable");
|
||||
|
||||
constructor(readonly runningExtensions: IExtensionDescription[],
|
||||
@IExtensionsWorkbenchService private readonly extensionsWorkbenchService: IExtensionsWorkbenchService,
|
||||
@@ -1030,7 +1030,7 @@ export class DisableDropDownAction extends ExtensionEditorDropDownAction {
|
||||
export class CheckForUpdatesAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.checkForUpdates';
|
||||
static LABEL = localize('checkForUpdates', "Check for Extension Updates");
|
||||
static readonly LABEL = localize('checkForUpdates', "Check for Extension Updates");
|
||||
|
||||
constructor(
|
||||
id = CheckForUpdatesAction.ID,
|
||||
@@ -1102,7 +1102,7 @@ export class ToggleAutoUpdateAction extends Action {
|
||||
export class EnableAutoUpdateAction extends ToggleAutoUpdateAction {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.enableAutoUpdate';
|
||||
static LABEL = localize('enableAutoUpdate', "Enable Auto Updating Extensions");
|
||||
static readonly LABEL = localize('enableAutoUpdate', "Enable Auto Updating Extensions");
|
||||
|
||||
constructor(
|
||||
id = EnableAutoUpdateAction.ID,
|
||||
@@ -1116,7 +1116,7 @@ export class EnableAutoUpdateAction extends ToggleAutoUpdateAction {
|
||||
export class DisableAutoUpdateAction extends ToggleAutoUpdateAction {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.disableAutoUpdate';
|
||||
static LABEL = localize('disableAutoUpdate', "Disable Auto Updating Extensions");
|
||||
static readonly LABEL = localize('disableAutoUpdate', "Disable Auto Updating Extensions");
|
||||
|
||||
constructor(
|
||||
id = EnableAutoUpdateAction.ID,
|
||||
@@ -1130,7 +1130,7 @@ export class DisableAutoUpdateAction extends ToggleAutoUpdateAction {
|
||||
export class UpdateAllAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.updateAllExtensions';
|
||||
static LABEL = localize('updateAll', "Update All Extensions");
|
||||
static readonly LABEL = localize('updateAll', "Update All Extensions");
|
||||
|
||||
constructor(
|
||||
id = UpdateAllAction.ID,
|
||||
@@ -1440,7 +1440,7 @@ export class InstallExtensionsAction extends OpenExtensionsViewletAction {
|
||||
export class ShowEnabledExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showEnabledExtensions';
|
||||
static LABEL = localize('showEnabledExtensions', "Show Enabled Extensions");
|
||||
static readonly LABEL = localize('showEnabledExtensions', "Show Enabled Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1463,7 +1463,7 @@ export class ShowEnabledExtensionsAction extends Action {
|
||||
export class ShowInstalledExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showInstalledExtensions';
|
||||
static LABEL = localize('showInstalledExtensions', "Show Installed Extensions");
|
||||
static readonly LABEL = localize('showInstalledExtensions', "Show Installed Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1486,7 +1486,7 @@ export class ShowInstalledExtensionsAction extends Action {
|
||||
export class ShowDisabledExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showDisabledExtensions';
|
||||
static LABEL = localize('showDisabledExtensions', "Show Disabled Extensions");
|
||||
static readonly LABEL = localize('showDisabledExtensions', "Show Disabled Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1509,7 +1509,7 @@ export class ShowDisabledExtensionsAction extends Action {
|
||||
export class ClearExtensionsInputAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.clearExtensionsInput';
|
||||
static LABEL = localize('clearExtensionsInput', "Clear Extensions Input");
|
||||
static readonly LABEL = localize('clearExtensionsInput', "Clear Extensions Input");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1540,7 +1540,7 @@ export class ClearExtensionsInputAction extends Action {
|
||||
export class ShowBuiltInExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.listBuiltInExtensions';
|
||||
static LABEL = localize('showBuiltInExtensions', "Show Built-in Extensions");
|
||||
static readonly LABEL = localize('showBuiltInExtensions', "Show Built-in Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1563,7 +1563,7 @@ export class ShowBuiltInExtensionsAction extends Action {
|
||||
export class ShowOutdatedExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.listOutdatedExtensions';
|
||||
static LABEL = localize('showOutdatedExtensions', "Show Outdated Extensions");
|
||||
static readonly LABEL = localize('showOutdatedExtensions', "Show Outdated Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1586,7 +1586,7 @@ export class ShowOutdatedExtensionsAction extends Action {
|
||||
export class ShowPopularExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showPopularExtensions';
|
||||
static LABEL = localize('showPopularExtensions', "Show Popular Extensions");
|
||||
static readonly LABEL = localize('showPopularExtensions', "Show Popular Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1609,7 +1609,7 @@ export class ShowPopularExtensionsAction extends Action {
|
||||
export class ShowRecommendedExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showRecommendedExtensions';
|
||||
static LABEL = localize('showRecommendedExtensions', "Show Recommended Extensions");
|
||||
static readonly LABEL = localize('showRecommendedExtensions', "Show Recommended Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1632,7 +1632,7 @@ export class ShowRecommendedExtensionsAction extends Action {
|
||||
export class InstallWorkspaceRecommendedExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.installWorkspaceRecommendedExtensions';
|
||||
static LABEL = localize('installWorkspaceRecommendedExtensions', "Install All Workspace Recommended Extensions");
|
||||
static readonly LABEL = localize('installWorkspaceRecommendedExtensions', "Install All Workspace Recommended Extensions");
|
||||
|
||||
private _recommendations: IExtensionRecommendation[] = [];
|
||||
get recommendations(): IExtensionRecommendation[] { return this._recommendations; }
|
||||
@@ -1697,7 +1697,7 @@ export class InstallWorkspaceRecommendedExtensionsAction extends Action {
|
||||
export class InstallRecommendedExtensionAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.installRecommendedExtension';
|
||||
static LABEL = localize('installRecommendedExtension', "Install Recommended Extension");
|
||||
static readonly LABEL = localize('installRecommendedExtension', "Install Recommended Extension");
|
||||
|
||||
private extensionId: string;
|
||||
|
||||
@@ -1788,7 +1788,7 @@ export class UndoIgnoreExtensionRecommendationAction extends Action {
|
||||
export class ShowRecommendedKeymapExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showRecommendedKeymapExtensions';
|
||||
static SHORT_LABEL = localize('showRecommendedKeymapExtensionsShort', "Keymaps");
|
||||
static readonly SHORT_LABEL = localize('showRecommendedKeymapExtensionsShort', "Keymaps");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1811,7 +1811,7 @@ export class ShowRecommendedKeymapExtensionsAction extends Action {
|
||||
export class ShowLanguageExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showLanguageExtensions';
|
||||
static SHORT_LABEL = localize('showLanguageExtensionsShort', "Language Extensions");
|
||||
static readonly SHORT_LABEL = localize('showLanguageExtensionsShort', "Language Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -1834,7 +1834,7 @@ export class ShowLanguageExtensionsAction extends Action {
|
||||
export class ShowAzureExtensionsAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.showAzureExtensions';
|
||||
static SHORT_LABEL = localize('showAzureExtensionsShort', "Azure Extensions");
|
||||
static readonly SHORT_LABEL = localize('showAzureExtensionsShort', "Azure Extensions");
|
||||
|
||||
constructor(
|
||||
id: string,
|
||||
@@ -2176,7 +2176,7 @@ export abstract class AbstractConfigureRecommendedExtensionsAction extends Actio
|
||||
export class ConfigureWorkspaceRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions';
|
||||
static LABEL = localize('configureWorkspaceRecommendedExtensions', "Configure Recommended Extensions (Workspace)");
|
||||
static readonly LABEL = localize('configureWorkspaceRecommendedExtensions', "Configure Recommended Extensions (Workspace)");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2212,7 +2212,7 @@ export class ConfigureWorkspaceRecommendedExtensionsAction extends AbstractConfi
|
||||
export class ConfigureWorkspaceFolderRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.configureWorkspaceFolderRecommendedExtensions';
|
||||
static LABEL = localize('configureWorkspaceFolderRecommendedExtensions', "Configure Recommended Extensions (Workspace Folder)");
|
||||
static readonly LABEL = localize('configureWorkspaceFolderRecommendedExtensions', "Configure Recommended Extensions (Workspace Folder)");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2685,7 +2685,7 @@ export class SystemDisabledWarningAction extends ExtensionAction {
|
||||
export class DisableAllAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.disableAll';
|
||||
static LABEL = localize('disableAll', "Disable All Installed Extensions");
|
||||
static readonly LABEL = localize('disableAll', "Disable All Installed Extensions");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2710,7 +2710,7 @@ export class DisableAllAction extends Action {
|
||||
export class DisableAllWorkspaceAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.disableAllWorkspace';
|
||||
static LABEL = localize('disableAllWorkspace', "Disable All Installed Extensions for this Workspace");
|
||||
static readonly LABEL = localize('disableAllWorkspace', "Disable All Installed Extensions for this Workspace");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2737,7 +2737,7 @@ export class DisableAllWorkspaceAction extends Action {
|
||||
export class EnableAllAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.enableAll';
|
||||
static LABEL = localize('enableAll', "Enable All Extensions");
|
||||
static readonly LABEL = localize('enableAll', "Enable All Extensions");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2762,7 +2762,7 @@ export class EnableAllAction extends Action {
|
||||
export class EnableAllWorkspaceAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.enableAllWorkspace';
|
||||
static LABEL = localize('enableAllWorkspace', "Enable All Extensions for this Workspace");
|
||||
static readonly LABEL = localize('enableAllWorkspace', "Enable All Extensions for this Workspace");
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -2789,7 +2789,7 @@ export class EnableAllWorkspaceAction extends Action {
|
||||
export class InstallVSIXAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.installVSIX';
|
||||
static LABEL = localize('installVSIX', "Install from VSIX...");
|
||||
static readonly LABEL = localize('installVSIX', "Install from VSIX...");
|
||||
|
||||
constructor(
|
||||
id = InstallVSIXAction.ID,
|
||||
@@ -2889,7 +2889,7 @@ export class InstallVSIXAction extends Action {
|
||||
export class ReinstallAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.reinstall';
|
||||
static LABEL = localize('reinstall', "Reinstall Extension...");
|
||||
static readonly LABEL = localize('reinstall', "Reinstall Extension...");
|
||||
|
||||
constructor(
|
||||
id: string = ReinstallAction.ID, label: string = ReinstallAction.LABEL,
|
||||
@@ -2956,7 +2956,7 @@ export class ReinstallAction extends Action {
|
||||
export class InstallSpecificVersionOfExtensionAction extends Action {
|
||||
|
||||
static readonly ID = 'workbench.extensions.action.install.specificVersion';
|
||||
static LABEL = localize('install previous version', "Install Specific Version of Extension...");
|
||||
static readonly LABEL = localize('install previous version', "Install Specific Version of Extension...");
|
||||
|
||||
constructor(
|
||||
id: string = InstallSpecificVersionOfExtensionAction.ID, label: string = InstallSpecificVersionOfExtensionAction.LABEL,
|
||||
|
||||
Reference in New Issue
Block a user