@codingame/monaco-vscode-extension-gallery-service-override 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/base/common/paging.js +5 -5
- package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +11 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +12 -8
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +23 -45
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +17 -8
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +126 -118
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +1 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +20 -9
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +85 -72
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +10 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +26 -6
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +3 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +2 -11
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +10 -0
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +9 -5
- package/vscode/src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.js +5 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
4
|
import { registerAction2, MenuRegistry, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { IExtensionManagementService, ExtensionsLocalizedLabel, PreferencesLocalizedLabel, IExtensionGalleryService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
@@ -8,7 +8,7 @@ import { IExtensionIgnoredRecommendationsService } from 'vscode/vscode/vs/workbe
|
|
|
8
8
|
import { Extensions as Extensions$4 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
10
10
|
import { VIEWLET_ID, IExtensionsWorkbenchService, CONTEXT_HAS_GALLERY, AutoUpdateConfigurationKey, HasOutdatedExtensionsContext, OUTDATED_EXTENSIONS_VIEW_ID, SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID, INSTALL_EXTENSION_FROM_VSIX_COMMAND_ID, extensionsSearchActionsMenu, LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID, WORKSPACE_RECOMMENDATIONS_VIEW_ID, THEME_ACTIONS_GROUP, INSTALL_ACTIONS_GROUP, UPDATE_ACTIONS_GROUP, TOGGLE_IGNORE_EXTENSION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
11
|
-
import { SearchExtensionsAction, PromptExtensionInstallFailureAction, ConfigureWorkspaceFolderRecommendedExtensionsAction, InstallSpecificVersionOfExtensionAction, ReinstallAction, SetColorThemeAction, SetFileIconThemeAction, SetProductIconThemeAction, ToggleAutoUpdateForExtensionAction, ToggleAutoUpdatesForPublisherAction,
|
|
11
|
+
import { SearchExtensionsAction, PromptExtensionInstallFailureAction, ConfigureWorkspaceFolderRecommendedExtensionsAction, InstallSpecificVersionOfExtensionAction, ReinstallAction, SetColorThemeAction, SetFileIconThemeAction, SetProductIconThemeAction, ToggleAutoUpdateForExtensionAction, ToggleAutoUpdatesForPublisherAction, TogglePreReleaseExtensionAction, ClearLanguageAction, ConfigureWorkspaceRecommendedExtensionsAction } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
|
|
12
12
|
import { ExtensionsInput } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
|
|
13
13
|
import { ExtensionEditor } from './extensionEditor.js';
|
|
14
14
|
import { ExtensionsViewPaneContainer, StatusUpdater, MaliciousExtensionChecker, ExtensionsViewletViewsContribution, DefaultViewsContext, SearchHasTextContext } from './extensionsViewlet.js';
|
|
@@ -25,7 +25,8 @@ import { ExtensionActivationProgress } from './extensionsActivationProgress.js';
|
|
|
25
25
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
26
26
|
import { ExtensionDependencyChecker } from './extensionsDependencyChecker.js';
|
|
27
27
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
28
|
-
import { Extensions as Extensions$1
|
|
28
|
+
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
29
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
29
30
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
30
31
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
31
32
|
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -87,11 +88,11 @@ import { IFileDialogService, IDialogService } from 'vscode/vscode/vs/platform/di
|
|
|
87
88
|
]);
|
|
88
89
|
( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
89
90
|
id: VIEWLET_ID,
|
|
90
|
-
title:
|
|
91
|
+
title: ( localize2WithPath(
|
|
91
92
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
92
93
|
'extensions',
|
|
93
94
|
"Extensions"
|
|
94
|
-
)),
|
|
95
|
+
)),
|
|
95
96
|
openCommandActionDescriptor: {
|
|
96
97
|
id: VIEWLET_ID,
|
|
97
98
|
mnemonicTitle: ( localizeWithPath(
|
|
@@ -661,11 +662,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
661
662
|
}));
|
|
662
663
|
this.registerExtensionAction({
|
|
663
664
|
id: 'workbench.extensions.action.focusExtensionsView',
|
|
664
|
-
title:
|
|
665
|
+
title: ( localize2WithPath(
|
|
665
666
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
666
667
|
'focusExtensions',
|
|
667
|
-
|
|
668
|
-
)),
|
|
668
|
+
'Focus on Extensions View'
|
|
669
|
+
)),
|
|
669
670
|
category: ExtensionsLocalizedLabel,
|
|
670
671
|
f1: true,
|
|
671
672
|
run: async (accessor) => {
|
|
@@ -674,11 +675,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
674
675
|
});
|
|
675
676
|
this.registerExtensionAction({
|
|
676
677
|
id: 'workbench.extensions.action.installExtensions',
|
|
677
|
-
title:
|
|
678
|
+
title: ( localize2WithPath(
|
|
678
679
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
679
680
|
'installExtensions',
|
|
680
|
-
|
|
681
|
-
)),
|
|
681
|
+
'Install Extensions'
|
|
682
|
+
)),
|
|
682
683
|
category: ExtensionsLocalizedLabel,
|
|
683
684
|
menu: {
|
|
684
685
|
id: MenuId.CommandPalette,
|
|
@@ -694,11 +695,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
694
695
|
});
|
|
695
696
|
this.registerExtensionAction({
|
|
696
697
|
id: 'workbench.extensions.action.showRecommendedKeymapExtensions',
|
|
697
|
-
title:
|
|
698
|
+
title: ( localize2WithPath(
|
|
698
699
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
699
700
|
'showRecommendedKeymapExtensionsShort',
|
|
700
|
-
|
|
701
|
-
)),
|
|
701
|
+
'Keymaps'
|
|
702
|
+
)),
|
|
702
703
|
category: PreferencesLocalizedLabel,
|
|
703
704
|
menu: [{
|
|
704
705
|
id: MenuId.CommandPalette,
|
|
@@ -719,11 +720,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
719
720
|
});
|
|
720
721
|
this.registerExtensionAction({
|
|
721
722
|
id: 'workbench.extensions.action.showLanguageExtensions',
|
|
722
|
-
title:
|
|
723
|
+
title: ( localize2WithPath(
|
|
723
724
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
724
725
|
'showLanguageExtensionsShort',
|
|
725
|
-
|
|
726
|
-
)),
|
|
726
|
+
'Language Extensions'
|
|
727
|
+
)),
|
|
727
728
|
category: PreferencesLocalizedLabel,
|
|
728
729
|
menu: {
|
|
729
730
|
id: MenuId.CommandPalette,
|
|
@@ -733,11 +734,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
733
734
|
});
|
|
734
735
|
this.registerExtensionAction({
|
|
735
736
|
id: 'workbench.extensions.action.checkForUpdates',
|
|
736
|
-
title:
|
|
737
|
+
title: ( localize2WithPath(
|
|
737
738
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
738
739
|
'checkForUpdates',
|
|
739
|
-
|
|
740
|
-
)),
|
|
740
|
+
'Check for Extension Updates'
|
|
741
|
+
)),
|
|
741
742
|
category: ExtensionsLocalizedLabel,
|
|
742
743
|
menu: [{
|
|
743
744
|
id: MenuId.CommandPalette,
|
|
@@ -837,11 +838,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
837
838
|
});
|
|
838
839
|
this.registerExtensionAction({
|
|
839
840
|
id: 'workbench.extensions.action.updateAllExtensions',
|
|
840
|
-
title:
|
|
841
|
+
title: ( localize2WithPath(
|
|
841
842
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
842
843
|
'updateAll',
|
|
843
|
-
|
|
844
|
-
)),
|
|
844
|
+
'Update All Extensions'
|
|
845
|
+
)),
|
|
845
846
|
category: ExtensionsLocalizedLabel,
|
|
846
847
|
precondition: HasOutdatedExtensionsContext,
|
|
847
848
|
menu: [
|
|
@@ -880,11 +881,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
880
881
|
});
|
|
881
882
|
this.registerExtensionAction({
|
|
882
883
|
id: 'workbench.extensions.action.disableAutoUpdate',
|
|
883
|
-
title:
|
|
884
|
+
title: ( localize2WithPath(
|
|
884
885
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
885
886
|
'disableAutoUpdate',
|
|
886
|
-
|
|
887
|
-
)),
|
|
887
|
+
'Disable Auto Update for All Extensions'
|
|
888
|
+
)),
|
|
888
889
|
category: ExtensionsLocalizedLabel,
|
|
889
890
|
f1: true,
|
|
890
891
|
precondition: CONTEXT_HAS_GALLERY,
|
|
@@ -892,11 +893,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
892
893
|
});
|
|
893
894
|
this.registerExtensionAction({
|
|
894
895
|
id: 'workbench.extensions.action.enableAutoUpdate',
|
|
895
|
-
title:
|
|
896
|
+
title: ( localize2WithPath(
|
|
896
897
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
897
898
|
'enableAutoUpdate',
|
|
898
|
-
|
|
899
|
-
)),
|
|
899
|
+
'Enable Auto Update for All Extensions'
|
|
900
|
+
)),
|
|
900
901
|
category: ExtensionsLocalizedLabel,
|
|
901
902
|
f1: true,
|
|
902
903
|
precondition: CONTEXT_HAS_GALLERY,
|
|
@@ -904,11 +905,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
904
905
|
});
|
|
905
906
|
this.registerExtensionAction({
|
|
906
907
|
id: 'workbench.extensions.action.enableAll',
|
|
907
|
-
title:
|
|
908
|
+
title: ( localize2WithPath(
|
|
908
909
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
909
910
|
'enableAll',
|
|
910
|
-
|
|
911
|
-
)),
|
|
911
|
+
'Enable All Extensions'
|
|
912
|
+
)),
|
|
912
913
|
category: ExtensionsLocalizedLabel,
|
|
913
914
|
menu: [{
|
|
914
915
|
id: MenuId.CommandPalette,
|
|
@@ -932,11 +933,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
932
933
|
});
|
|
933
934
|
this.registerExtensionAction({
|
|
934
935
|
id: 'workbench.extensions.action.enableAllWorkspace',
|
|
935
|
-
title:
|
|
936
|
+
title: ( localize2WithPath(
|
|
936
937
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
937
938
|
'enableAllWorkspace',
|
|
938
|
-
|
|
939
|
-
)),
|
|
939
|
+
'Enable All Extensions for this Workspace'
|
|
940
|
+
)),
|
|
940
941
|
category: ExtensionsLocalizedLabel,
|
|
941
942
|
menu: {
|
|
942
943
|
id: MenuId.CommandPalette,
|
|
@@ -955,11 +956,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
955
956
|
});
|
|
956
957
|
this.registerExtensionAction({
|
|
957
958
|
id: 'workbench.extensions.action.disableAll',
|
|
958
|
-
title:
|
|
959
|
+
title: ( localize2WithPath(
|
|
959
960
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
960
961
|
'disableAll',
|
|
961
|
-
|
|
962
|
-
)),
|
|
962
|
+
'Disable All Installed Extensions'
|
|
963
|
+
)),
|
|
963
964
|
category: ExtensionsLocalizedLabel,
|
|
964
965
|
menu: [{
|
|
965
966
|
id: MenuId.CommandPalette,
|
|
@@ -983,11 +984,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
983
984
|
});
|
|
984
985
|
this.registerExtensionAction({
|
|
985
986
|
id: 'workbench.extensions.action.disableAllWorkspace',
|
|
986
|
-
title:
|
|
987
|
+
title: ( localize2WithPath(
|
|
987
988
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
988
989
|
'disableAllWorkspace',
|
|
989
|
-
|
|
990
|
-
)),
|
|
990
|
+
'Disable All Installed Extensions for this Workspace'
|
|
991
|
+
)),
|
|
991
992
|
category: ExtensionsLocalizedLabel,
|
|
992
993
|
menu: {
|
|
993
994
|
id: MenuId.CommandPalette,
|
|
@@ -1006,11 +1007,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1006
1007
|
});
|
|
1007
1008
|
this.registerExtensionAction({
|
|
1008
1009
|
id: SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID,
|
|
1009
|
-
title:
|
|
1010
|
+
title: ( localize2WithPath(
|
|
1010
1011
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1011
1012
|
'InstallFromVSIX',
|
|
1012
|
-
|
|
1013
|
-
)),
|
|
1013
|
+
'Install from VSIX...'
|
|
1014
|
+
)),
|
|
1014
1015
|
category: ExtensionsLocalizedLabel,
|
|
1015
1016
|
menu: [{
|
|
1016
1017
|
id: MenuId.CommandPalette,
|
|
@@ -1093,11 +1094,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1093
1094
|
});
|
|
1094
1095
|
this.registerExtensionAction({
|
|
1095
1096
|
id: 'workbench.extensions.action.installExtensionFromLocation',
|
|
1096
|
-
title:
|
|
1097
|
+
title: ( localize2WithPath(
|
|
1097
1098
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1098
1099
|
'installExtensionFromLocation',
|
|
1099
|
-
|
|
1100
|
-
)),
|
|
1100
|
+
'Install Extension from Location...'
|
|
1101
|
+
)),
|
|
1101
1102
|
category: Categories.Developer,
|
|
1102
1103
|
menu: [{
|
|
1103
1104
|
id: MenuId.CommandPalette,
|
|
@@ -1168,11 +1169,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1168
1169
|
const showFeaturedExtensionsId = 'extensions.filter.featured';
|
|
1169
1170
|
this.registerExtensionAction({
|
|
1170
1171
|
id: showFeaturedExtensionsId,
|
|
1171
|
-
title:
|
|
1172
|
+
title: ( localize2WithPath(
|
|
1172
1173
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1173
1174
|
'showFeaturedExtensions',
|
|
1174
|
-
|
|
1175
|
-
)),
|
|
1175
|
+
'Show Featured Extensions'
|
|
1176
|
+
)),
|
|
1176
1177
|
category: ExtensionsLocalizedLabel,
|
|
1177
1178
|
menu: [{
|
|
1178
1179
|
id: MenuId.CommandPalette,
|
|
@@ -1194,11 +1195,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1194
1195
|
});
|
|
1195
1196
|
this.registerExtensionAction({
|
|
1196
1197
|
id: 'workbench.extensions.action.showPopularExtensions',
|
|
1197
|
-
title:
|
|
1198
|
+
title: ( localize2WithPath(
|
|
1198
1199
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1199
1200
|
'showPopularExtensions',
|
|
1200
|
-
|
|
1201
|
-
)),
|
|
1201
|
+
'Show Popular Extensions'
|
|
1202
|
+
)),
|
|
1202
1203
|
category: ExtensionsLocalizedLabel,
|
|
1203
1204
|
menu: [{
|
|
1204
1205
|
id: MenuId.CommandPalette,
|
|
@@ -1220,11 +1221,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1220
1221
|
});
|
|
1221
1222
|
this.registerExtensionAction({
|
|
1222
1223
|
id: 'workbench.extensions.action.showRecommendedExtensions',
|
|
1223
|
-
title:
|
|
1224
|
+
title: ( localize2WithPath(
|
|
1224
1225
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1225
1226
|
'showRecommendedExtensions',
|
|
1226
|
-
|
|
1227
|
-
)),
|
|
1227
|
+
'Show Recommended Extensions'
|
|
1228
|
+
)),
|
|
1228
1229
|
category: ExtensionsLocalizedLabel,
|
|
1229
1230
|
menu: [{
|
|
1230
1231
|
id: MenuId.CommandPalette,
|
|
@@ -1246,11 +1247,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1246
1247
|
});
|
|
1247
1248
|
this.registerExtensionAction({
|
|
1248
1249
|
id: 'workbench.extensions.action.recentlyPublishedExtensions',
|
|
1249
|
-
title:
|
|
1250
|
+
title: ( localize2WithPath(
|
|
1250
1251
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1251
1252
|
'recentlyPublishedExtensions',
|
|
1252
|
-
|
|
1253
|
-
)),
|
|
1253
|
+
'Show Recently Published Extensions'
|
|
1254
|
+
)),
|
|
1254
1255
|
category: ExtensionsLocalizedLabel,
|
|
1255
1256
|
menu: [{
|
|
1256
1257
|
id: MenuId.CommandPalette,
|
|
@@ -1296,11 +1297,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1296
1297
|
});
|
|
1297
1298
|
this.registerExtensionAction({
|
|
1298
1299
|
id: 'workbench.extensions.action.listBuiltInExtensions',
|
|
1299
|
-
title:
|
|
1300
|
+
title: ( localize2WithPath(
|
|
1300
1301
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1301
1302
|
'showBuiltInExtensions',
|
|
1302
|
-
|
|
1303
|
-
)),
|
|
1303
|
+
'Show Built-in Extensions'
|
|
1304
|
+
)),
|
|
1304
1305
|
category: ExtensionsLocalizedLabel,
|
|
1305
1306
|
menu: [{
|
|
1306
1307
|
id: MenuId.CommandPalette,
|
|
@@ -1325,11 +1326,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1325
1326
|
});
|
|
1326
1327
|
this.registerExtensionAction({
|
|
1327
1328
|
id: 'workbench.extensions.action.extensionUpdates',
|
|
1328
|
-
title:
|
|
1329
|
+
title: ( localize2WithPath(
|
|
1329
1330
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1330
1331
|
'extensionUpdates',
|
|
1331
|
-
|
|
1332
|
-
)),
|
|
1332
|
+
'Show Extension Updates'
|
|
1333
|
+
)),
|
|
1333
1334
|
category: ExtensionsLocalizedLabel,
|
|
1334
1335
|
precondition: CONTEXT_HAS_GALLERY,
|
|
1335
1336
|
f1: true,
|
|
@@ -1350,11 +1351,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1350
1351
|
});
|
|
1351
1352
|
this.registerExtensionAction({
|
|
1352
1353
|
id: LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID,
|
|
1353
|
-
title:
|
|
1354
|
+
title: ( localize2WithPath(
|
|
1354
1355
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1355
1356
|
'showWorkspaceUnsupportedExtensions',
|
|
1356
|
-
|
|
1357
|
-
)),
|
|
1357
|
+
'Show Extensions Unsupported By Workspace'
|
|
1358
|
+
)),
|
|
1358
1359
|
category: ExtensionsLocalizedLabel,
|
|
1359
1360
|
menu: [{
|
|
1360
1361
|
id: MenuId.CommandPalette,
|
|
@@ -1376,11 +1377,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1376
1377
|
});
|
|
1377
1378
|
this.registerExtensionAction({
|
|
1378
1379
|
id: 'workbench.extensions.action.showEnabledExtensions',
|
|
1379
|
-
title:
|
|
1380
|
+
title: ( localize2WithPath(
|
|
1380
1381
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1381
1382
|
'showEnabledExtensions',
|
|
1382
|
-
|
|
1383
|
-
)),
|
|
1383
|
+
'Show Enabled Extensions'
|
|
1384
|
+
)),
|
|
1384
1385
|
category: ExtensionsLocalizedLabel,
|
|
1385
1386
|
menu: [{
|
|
1386
1387
|
id: MenuId.CommandPalette,
|
|
@@ -1405,11 +1406,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1405
1406
|
});
|
|
1406
1407
|
this.registerExtensionAction({
|
|
1407
1408
|
id: 'workbench.extensions.action.showDisabledExtensions',
|
|
1408
|
-
title:
|
|
1409
|
+
title: ( localize2WithPath(
|
|
1409
1410
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1410
1411
|
'showDisabledExtensions',
|
|
1411
|
-
|
|
1412
|
-
)),
|
|
1412
|
+
'Show Disabled Extensions'
|
|
1413
|
+
)),
|
|
1413
1414
|
category: ExtensionsLocalizedLabel,
|
|
1414
1415
|
menu: [{
|
|
1415
1416
|
id: MenuId.CommandPalette,
|
|
@@ -1446,11 +1447,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1446
1447
|
});
|
|
1447
1448
|
this.registerExtensionAction({
|
|
1448
1449
|
id: 'workbench.extensions.action.clearExtensionsSearchResults',
|
|
1449
|
-
title:
|
|
1450
|
+
title: ( localize2WithPath(
|
|
1450
1451
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1451
1452
|
'clearExtensionsSearchResults',
|
|
1452
|
-
|
|
1453
|
-
)),
|
|
1453
|
+
'Clear Extensions Search Results'
|
|
1454
|
+
)),
|
|
1454
1455
|
category: ExtensionsLocalizedLabel,
|
|
1455
1456
|
icon: clearSearchResultsIcon,
|
|
1456
1457
|
f1: true,
|
|
@@ -1471,11 +1472,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1471
1472
|
});
|
|
1472
1473
|
this.registerExtensionAction({
|
|
1473
1474
|
id: 'workbench.extensions.action.refreshExtension',
|
|
1474
|
-
title:
|
|
1475
|
+
title: ( localize2WithPath(
|
|
1475
1476
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1476
1477
|
'refreshExtension',
|
|
1477
|
-
|
|
1478
|
-
)),
|
|
1478
|
+
'Refresh'
|
|
1479
|
+
)),
|
|
1479
1480
|
category: ExtensionsLocalizedLabel,
|
|
1480
1481
|
icon: refreshIcon,
|
|
1481
1482
|
f1: true,
|
|
@@ -1614,16 +1615,16 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1614
1615
|
});
|
|
1615
1616
|
this.registerExtensionAction({
|
|
1616
1617
|
id: 'workbench.extensions.action.showPreReleaseVersion',
|
|
1617
|
-
title:
|
|
1618
|
+
title: ( localize2WithPath(
|
|
1618
1619
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1619
1620
|
'show pre-release version',
|
|
1620
|
-
|
|
1621
|
-
)),
|
|
1621
|
+
'Show Pre-Release Version'
|
|
1622
|
+
)),
|
|
1622
1623
|
menu: {
|
|
1623
1624
|
id: MenuId.ExtensionContext,
|
|
1624
1625
|
group: INSTALL_ACTIONS_GROUP,
|
|
1625
1626
|
order: 0,
|
|
1626
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('inExtensionEditor')), ( ContextKeyExpr.has('
|
|
1627
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('inExtensionEditor')), ( ContextKeyExpr.has('galleryExtensionHasPreReleaseVersion')), ContextKeyExpr.not('showPreReleaseVersion'), ContextKeyExpr.not('isBuiltinExtension')))
|
|
1627
1628
|
},
|
|
1628
1629
|
run: async (accessor, extensionId) => {
|
|
1629
1630
|
const extensionWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
@@ -1633,16 +1634,16 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1633
1634
|
});
|
|
1634
1635
|
this.registerExtensionAction({
|
|
1635
1636
|
id: 'workbench.extensions.action.showReleasedVersion',
|
|
1636
|
-
title:
|
|
1637
|
+
title: ( localize2WithPath(
|
|
1637
1638
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1638
1639
|
'show released version',
|
|
1639
|
-
|
|
1640
|
-
)),
|
|
1640
|
+
'Show Release Version'
|
|
1641
|
+
)),
|
|
1641
1642
|
menu: {
|
|
1642
1643
|
id: MenuId.ExtensionContext,
|
|
1643
1644
|
group: INSTALL_ACTIONS_GROUP,
|
|
1644
1645
|
order: 1,
|
|
1645
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('inExtensionEditor')), ( ContextKeyExpr.has('
|
|
1646
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('inExtensionEditor')), ( ContextKeyExpr.has('galleryExtensionHasPreReleaseVersion')), ( ContextKeyExpr.has('extensionHasReleaseVersion')), ( ContextKeyExpr.has('showPreReleaseVersion')), ContextKeyExpr.not('isBuiltinExtension')))
|
|
1646
1647
|
},
|
|
1647
1648
|
run: async (accessor, extensionId) => {
|
|
1648
1649
|
const extensionWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
@@ -1693,45 +1694,52 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1693
1694
|
}
|
|
1694
1695
|
});
|
|
1695
1696
|
this.registerExtensionAction({
|
|
1696
|
-
id:
|
|
1697
|
-
title:
|
|
1697
|
+
id: 'workbench.extensions.action.switchToPreRlease',
|
|
1698
|
+
title: ( localizeWithPath(
|
|
1699
|
+
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1700
|
+
'enablePreRleaseLabel',
|
|
1701
|
+
"Switch to Pre-Release Version"
|
|
1702
|
+
)),
|
|
1703
|
+
category: ExtensionsLocalizedLabel,
|
|
1698
1704
|
menu: {
|
|
1699
1705
|
id: MenuId.ExtensionContext,
|
|
1700
1706
|
group: INSTALL_ACTIONS_GROUP,
|
|
1701
1707
|
order: 2,
|
|
1702
|
-
when: ( ContextKeyExpr.and(
|
|
1703
|
-
ContextKeyExpr.not('installedExtensionIsPreReleaseVersion'),
|
|
1704
|
-
ContextKeyExpr.not('installedExtensionIsOptedTpPreRelease'),
|
|
1705
|
-
( ContextKeyExpr.has('extensionHasPreReleaseVersion')),
|
|
1706
|
-
ContextKeyExpr.not('inExtensionEditor'),
|
|
1707
|
-
( ContextKeyExpr.equals('extensionStatus', 'installed')),
|
|
1708
|
-
ContextKeyExpr.not('isBuiltinExtension')
|
|
1709
|
-
))
|
|
1708
|
+
when: ( ContextKeyExpr.and(CONTEXT_HAS_GALLERY, ( ContextKeyExpr.has('galleryExtensionHasPreReleaseVersion')), ContextKeyExpr.not('installedExtensionIsOptedToPreRelease'), ContextKeyExpr.not('inExtensionEditor'), ( ContextKeyExpr.equals('extensionStatus', 'installed')), ContextKeyExpr.not('isBuiltinExtension')))
|
|
1710
1709
|
},
|
|
1711
1710
|
run: async (accessor, id) => {
|
|
1711
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
1712
1712
|
const extensionWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
1713
1713
|
const extension = extensionWorkbenchService.local.find(e => areSameExtensions(e.identifier, { id }));
|
|
1714
1714
|
if (extension) {
|
|
1715
|
-
|
|
1716
|
-
|
|
1715
|
+
const action = instantiationService.createInstance(TogglePreReleaseExtensionAction);
|
|
1716
|
+
action.extension = extension;
|
|
1717
|
+
return action.run();
|
|
1717
1718
|
}
|
|
1718
1719
|
}
|
|
1719
1720
|
});
|
|
1720
1721
|
this.registerExtensionAction({
|
|
1721
|
-
id:
|
|
1722
|
-
title:
|
|
1722
|
+
id: 'workbench.extensions.action.switchToRelease',
|
|
1723
|
+
title: ( localizeWithPath(
|
|
1724
|
+
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1725
|
+
'disablePreRleaseLabel',
|
|
1726
|
+
"Switch to Release Version"
|
|
1727
|
+
)),
|
|
1728
|
+
category: ExtensionsLocalizedLabel,
|
|
1723
1729
|
menu: {
|
|
1724
1730
|
id: MenuId.ExtensionContext,
|
|
1725
1731
|
group: INSTALL_ACTIONS_GROUP,
|
|
1726
|
-
order:
|
|
1727
|
-
when: ( ContextKeyExpr.and(
|
|
1732
|
+
order: 2,
|
|
1733
|
+
when: ( ContextKeyExpr.and(CONTEXT_HAS_GALLERY, ( ContextKeyExpr.has('galleryExtensionHasPreReleaseVersion')), ( ContextKeyExpr.has('installedExtensionIsOptedToPreRelease')), ContextKeyExpr.not('inExtensionEditor'), ( ContextKeyExpr.equals('extensionStatus', 'installed')), ContextKeyExpr.not('isBuiltinExtension')))
|
|
1728
1734
|
},
|
|
1729
1735
|
run: async (accessor, id) => {
|
|
1736
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
1730
1737
|
const extensionWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
1731
1738
|
const extension = extensionWorkbenchService.local.find(e => areSameExtensions(e.identifier, { id }));
|
|
1732
1739
|
if (extension) {
|
|
1733
|
-
|
|
1734
|
-
|
|
1740
|
+
const action = instantiationService.createInstance(TogglePreReleaseExtensionAction);
|
|
1741
|
+
action.extension = extension;
|
|
1742
|
+
return action.run();
|
|
1735
1743
|
}
|
|
1736
1744
|
}
|
|
1737
1745
|
});
|
|
@@ -1755,11 +1763,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1755
1763
|
});
|
|
1756
1764
|
this.registerExtensionAction({
|
|
1757
1765
|
id: 'workbench.extensions.action.copyExtension',
|
|
1758
|
-
title:
|
|
1766
|
+
title: ( localize2WithPath(
|
|
1759
1767
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1760
1768
|
'workbench.extensions.action.copyExtension',
|
|
1761
|
-
|
|
1762
|
-
)),
|
|
1769
|
+
'Copy'
|
|
1770
|
+
)),
|
|
1763
1771
|
menu: {
|
|
1764
1772
|
id: MenuId.ExtensionContext,
|
|
1765
1773
|
group: '1_copy'
|
|
@@ -1812,11 +1820,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1812
1820
|
});
|
|
1813
1821
|
this.registerExtensionAction({
|
|
1814
1822
|
id: 'workbench.extensions.action.copyExtensionId',
|
|
1815
|
-
title:
|
|
1823
|
+
title: ( localize2WithPath(
|
|
1816
1824
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1817
1825
|
'workbench.extensions.action.copyExtensionId',
|
|
1818
|
-
|
|
1819
|
-
)),
|
|
1826
|
+
'Copy Extension ID'
|
|
1827
|
+
)),
|
|
1820
1828
|
menu: {
|
|
1821
1829
|
id: MenuId.ExtensionContext,
|
|
1822
1830
|
group: '1_copy'
|
|
@@ -1825,11 +1833,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1825
1833
|
});
|
|
1826
1834
|
this.registerExtensionAction({
|
|
1827
1835
|
id: 'workbench.extensions.action.configure',
|
|
1828
|
-
title:
|
|
1836
|
+
title: ( localize2WithPath(
|
|
1829
1837
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1830
1838
|
'workbench.extensions.action.configure',
|
|
1831
|
-
|
|
1832
|
-
)),
|
|
1839
|
+
'Extension Settings'
|
|
1840
|
+
)),
|
|
1833
1841
|
menu: {
|
|
1834
1842
|
id: MenuId.ExtensionContext,
|
|
1835
1843
|
group: '2_configure',
|
|
@@ -1840,11 +1848,11 @@ let ExtensionsContributions = class ExtensionsContributions extends Disposable {
|
|
|
1840
1848
|
});
|
|
1841
1849
|
this.registerExtensionAction({
|
|
1842
1850
|
id: 'workbench.extensions.action.configureKeybindings',
|
|
1843
|
-
title:
|
|
1851
|
+
title: ( localize2WithPath(
|
|
1844
1852
|
'vs/workbench/contrib/extensions/browser/extensions.contribution',
|
|
1845
1853
|
'workbench.extensions.action.configureKeybindings',
|
|
1846
|
-
|
|
1847
|
-
)),
|
|
1854
|
+
'Extension Keyboard Shortcuts'
|
|
1855
|
+
)),
|
|
1848
1856
|
menu: {
|
|
1849
1857
|
id: MenuId.ExtensionContext,
|
|
1850
1858
|
group: '2_configure',
|
|
@@ -6,7 +6,7 @@ import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar'
|
|
|
6
6
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
7
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
8
8
|
import { ExtensionContainers, IExtensionsWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
9
|
-
import { ActionWithDropDownAction, ExtensionActionWithDropdownActionViewItem, ExtensionDropDownAction, ExtensionStatusAction, ExtensionStatusLabelAction, MigrateDeprecatedExtensionAction, ReloadAction, UpdateAction, ToggleAutoUpdateForExtensionAction, InstallDropdownAction, InstallingLabelAction, SetLanguageAction, ClearLanguageAction, RemoteInstallAction, LocalInstallAction, WebInstallAction,
|
|
9
|
+
import { ActionWithDropDownAction, ExtensionActionWithDropdownActionViewItem, ExtensionDropDownAction, ExtensionStatusAction, ExtensionStatusLabelAction, MigrateDeprecatedExtensionAction, ReloadAction, UpdateAction, ToggleAutoUpdateForExtensionAction, InstallDropdownAction, InstallingLabelAction, SetLanguageAction, ClearLanguageAction, RemoteInstallAction, LocalInstallAction, WebInstallAction, ManageExtensionAction } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
|
|
10
10
|
import { areSameExtensions } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
11
11
|
import { extensionVerifiedPublisherIconColor, RecommendationWidget, PreReleaseBookmarkWidget, RemoteBadgeWidget, ExtensionPackCountWidget, VerifiedPublisherWidget, ExtensionHoverWidget, SyncIgnoredWidget, ExtensionActivationStatusWidget, InstallCountWidget, RatingsWidget } from './extensionsWidgets.js';
|
|
12
12
|
import { IExtensionService, toExtension } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -91,8 +91,6 @@ let Renderer = class Renderer {
|
|
|
91
91
|
this.instantiationService.createInstance(LocalInstallAction),
|
|
92
92
|
this.instantiationService.createInstance(WebInstallAction),
|
|
93
93
|
extensionStatusIconAction,
|
|
94
|
-
this.instantiationService.createInstance(SwitchToReleasedVersionAction, true),
|
|
95
|
-
this.instantiationService.createInstance(SwitchToPreReleaseVersionAction, true),
|
|
96
94
|
this.instantiationService.createInstance(ManageExtensionAction)
|
|
97
95
|
];
|
|
98
96
|
const extensionHoverWidget = this.instantiationService.createInstance(ExtensionHoverWidget, { target: root, position: this.options.hoverOptions.position }, extensionStatusIconAction);
|