@codingame/monaco-vscode-quickaccess-service-override 2.2.2 → 3.0.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/workbench/browser/actions/quickAccessActions.js +6 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +27 -27
- package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +2 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsFileSystemProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +4 -7
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
3
|
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
4
4
|
import { IQuickInputService, ItemActivation } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
@@ -102,14 +102,11 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
102
102
|
constructor() {
|
|
103
103
|
super({
|
|
104
104
|
id: 'workbench.action.quickOpen',
|
|
105
|
-
title:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
)),
|
|
111
|
-
original: 'Go to File...'
|
|
112
|
-
},
|
|
105
|
+
title: ( localize2WithPath(
|
|
106
|
+
'vs/workbench/browser/actions/quickAccessActions',
|
|
107
|
+
'quickOpen',
|
|
108
|
+
"Go to File..."
|
|
109
|
+
)),
|
|
113
110
|
metadata: {
|
|
114
111
|
description: `Quick access`,
|
|
115
112
|
args: [{
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
3
|
-
import { CommandsHistory } from '../../../../platform/quickinput/browser/commandsQuickAccess.js';
|
|
4
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
5
|
-
import { MenuId, MenuItemAction, Action2, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
2
|
+
import { isFirefox } from 'vscode/vscode/vs/base/browser/browser';
|
|
7
3
|
import { raceTimeout, timeout } from 'vscode/vscode/vs/base/common/async';
|
|
8
|
-
import {
|
|
4
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
5
|
+
import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
9
6
|
import { Language } from 'vscode/vscode/vs/base/common/platform';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
8
|
+
import { AbstractEditorCommandsQuickAccessProvider } from '../../../../editor/contrib/quickAccess/browser/commandsQuickAccess.js';
|
|
9
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
10
|
+
import { isLocalizedString } from 'vscode/vscode/vs/platform/action/common/action';
|
|
11
|
+
import { MenuId, MenuItemAction, Action2, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
12
12
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
13
|
-
import {
|
|
13
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
14
14
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
15
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
17
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
18
|
+
import { CommandsHistory } from '../../../../platform/quickinput/browser/commandsQuickAccess.js';
|
|
19
|
+
import { TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
15
20
|
import { DefaultQuickAccessFilterValue } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
16
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
17
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
18
|
-
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
19
21
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
20
22
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
24
|
-
import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
25
|
-
import { isFirefox } from 'vscode/vscode/vs/base/browser/browser';
|
|
26
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
27
|
-
import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
23
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
24
|
+
import { CHAT_OPEN_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
28
25
|
import { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions';
|
|
26
|
+
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
29
27
|
import { RelatedInformationType, IAiRelatedInformationService } from 'vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
28
|
+
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
29
|
+
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
30
|
+
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
31
|
+
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
32
32
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
33
33
|
|
|
34
34
|
var CommandsQuickAccessProvider_1;
|
|
@@ -44,7 +44,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
44
44
|
}
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
47
|
-
constructor(editorService, menuService, extensionService, instantiationService, keybindingService, commandService, telemetryService, dialogService, configurationService, editorGroupService, preferencesService, productService, aiRelatedInformationService,
|
|
47
|
+
constructor(editorService, menuService, extensionService, instantiationService, keybindingService, commandService, telemetryService, dialogService, configurationService, editorGroupService, preferencesService, productService, aiRelatedInformationService, chatAgentService) {
|
|
48
48
|
super({
|
|
49
49
|
showAlias: !Language.isDefaultVariant(),
|
|
50
50
|
noResultsPick: () => ({
|
|
@@ -64,7 +64,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
64
64
|
this.preferencesService = preferencesService;
|
|
65
65
|
this.productService = productService;
|
|
66
66
|
this.aiRelatedInformationService = aiRelatedInformationService;
|
|
67
|
-
this.
|
|
67
|
+
this.chatAgentService = chatAgentService;
|
|
68
68
|
this.extensionRegistrationRace = raceTimeout(this.extensionService.whenInstalledExtensionsRegistered(), 800);
|
|
69
69
|
this.useAiRelatedInfo = false;
|
|
70
70
|
this._register(configurationService.onDidChangeConfiguration((e) => this.updateOptions(e)));
|
|
@@ -138,14 +138,14 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
138
138
|
type: 'separator'
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
141
|
+
const defaultAgent = this.chatAgentService.getDefaultAgent();
|
|
142
|
+
if (defaultAgent) {
|
|
143
143
|
additionalPicks.push({
|
|
144
144
|
label: ( localizeWithPath(
|
|
145
145
|
'vs/workbench/contrib/quickaccess/browser/commandsQuickAccess',
|
|
146
146
|
'askXInChat',
|
|
147
147
|
"Ask {0}: {1}",
|
|
148
|
-
|
|
148
|
+
defaultAgent.metadata.fullName,
|
|
149
149
|
filter
|
|
150
150
|
)),
|
|
151
151
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
@@ -223,7 +223,7 @@ CommandsQuickAccessProvider = CommandsQuickAccessProvider_1 = ( __decorate([
|
|
|
223
223
|
( __param(10, IPreferencesService)),
|
|
224
224
|
( __param(11, IProductService)),
|
|
225
225
|
( __param(12, IAiRelatedInformationService)),
|
|
226
|
-
( __param(13,
|
|
226
|
+
( __param(13, IChatAgentService))
|
|
227
227
|
], CommandsQuickAccessProvider));
|
|
228
228
|
class ShowAllCommandsAction extends Action2 {
|
|
229
229
|
static { this.ID = 'workbench.action.showCommands'; }
|
|
@@ -4,9 +4,10 @@ import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
|
4
4
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
5
5
|
|
|
6
6
|
let ExternalUriResolverContribution = class ExternalUriResolverContribution extends Disposable {
|
|
7
|
+
static { this.ID = 'workbench.contrib.externalUriResolver'; }
|
|
7
8
|
constructor(_openerService, _workbenchEnvironmentService) {
|
|
8
9
|
super();
|
|
9
|
-
if (_workbenchEnvironmentService.options
|
|
10
|
+
if (_workbenchEnvironmentService.options?.resolveExternalUri) {
|
|
10
11
|
this._register(_openerService.registerExternalUriResolver({
|
|
11
12
|
resolveExternalUri: async (resource) => {
|
|
12
13
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
4
4
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
5
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -15,7 +15,7 @@ const TRUSTED_DOMAINS_CONTENT_STORAGE_KEY = 'http.linkProtectionTrustedDomainsCo
|
|
|
15
15
|
const manageTrustedDomainSettingsCommand = {
|
|
16
16
|
id: 'workbench.action.manageTrustedDomain',
|
|
17
17
|
description: {
|
|
18
|
-
description: (
|
|
18
|
+
description: ( localize2WithPath(
|
|
19
19
|
'vs/workbench/contrib/url/browser/trustedDomains',
|
|
20
20
|
'trustedDomain.manageTrustedDomain',
|
|
21
21
|
'Manage Trusted Domains'
|
|
@@ -71,6 +71,7 @@ function computeTrustedDomainContent(defaultTrustedDomains, trustedDomains, user
|
|
|
71
71
|
return content;
|
|
72
72
|
}
|
|
73
73
|
let TrustedDomainsFileSystemProvider = class TrustedDomainsFileSystemProvider {
|
|
74
|
+
static { this.ID = 'workbench.contrib.trustedDomainsFileSystemProvider'; }
|
|
74
75
|
constructor(fileService, storageService, instantiationService) {
|
|
75
76
|
this.fileService = fileService;
|
|
76
77
|
this.storageService = storageService;
|
|
@@ -5,7 +5,7 @@ import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/comm
|
|
|
5
5
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
6
6
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
7
|
import { IURLService } from 'vscode/vscode/vs/platform/url/common/url';
|
|
8
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
|
+
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import { ExternalUriResolverContribution } from './externalUriResolver.js';
|
|
10
10
|
import { manageTrustedDomainSettingsCommand } from './trustedDomains.js';
|
|
11
11
|
import { TrustedDomainsFileSystemProvider } from './trustedDomainsFileSystemProvider.js';
|
|
@@ -43,15 +43,12 @@ CommandsRegistry.registerCommand(manageTrustedDomainSettingsCommand);
|
|
|
43
43
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
44
44
|
command: {
|
|
45
45
|
id: manageTrustedDomainSettingsCommand.id,
|
|
46
|
-
title:
|
|
47
|
-
value: manageTrustedDomainSettingsCommand.description.description,
|
|
48
|
-
original: 'Manage Trusted Domains'
|
|
49
|
-
}
|
|
46
|
+
title: manageTrustedDomainSettingsCommand.description.description
|
|
50
47
|
}
|
|
51
48
|
});
|
|
52
49
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(OpenerValidatorContributions, 3 );
|
|
53
|
-
(
|
|
54
|
-
(
|
|
50
|
+
registerWorkbenchContribution2(TrustedDomainsFileSystemProvider.ID, TrustedDomainsFileSystemProvider, 2 );
|
|
51
|
+
registerWorkbenchContribution2(ExternalUriResolverContribution.ID, ExternalUriResolverContribution, 2 );
|
|
55
52
|
const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
|
|
56
53
|
configurationRegistry.registerConfiguration({
|
|
57
54
|
...workbenchConfigurationNodeBase,
|
|
@@ -7,11 +7,10 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
|
|
|
7
7
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
8
8
|
import { QuickInputService as QuickInputService$1 } from 'vscode/vscode/vs/platform/quickinput/browser/quickInputService';
|
|
9
9
|
import { InQuickPickContextKey } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
10
|
-
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
11
10
|
|
|
12
11
|
let QuickInputService = class QuickInputService extends QuickInputService$1 {
|
|
13
|
-
constructor(configurationService, instantiationService, keybindingService, contextKeyService, themeService, layoutService
|
|
14
|
-
super(instantiationService, contextKeyService, themeService, layoutService, configurationService
|
|
12
|
+
constructor(configurationService, instantiationService, keybindingService, contextKeyService, themeService, layoutService) {
|
|
13
|
+
super(instantiationService, contextKeyService, themeService, layoutService, configurationService);
|
|
15
14
|
this.keybindingService = keybindingService;
|
|
16
15
|
this.inQuickInputContext = InQuickPickContextKey.bindTo(this.contextKeyService);
|
|
17
16
|
this.registerListeners();
|
|
@@ -33,8 +32,7 @@ QuickInputService = ( __decorate([
|
|
|
33
32
|
( __param(2, IKeybindingService)),
|
|
34
33
|
( __param(3, IContextKeyService)),
|
|
35
34
|
( __param(4, IThemeService)),
|
|
36
|
-
( __param(5, ILayoutService))
|
|
37
|
-
( __param(6, IHoverService))
|
|
35
|
+
( __param(5, ILayoutService))
|
|
38
36
|
], QuickInputService));
|
|
39
37
|
|
|
40
38
|
export { QuickInputService };
|