@codingame/monaco-vscode-quickaccess-service-override 16.1.0 → 17.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 +9 -9
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.d.ts +1 -2
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +9 -10
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +12 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +14 -14
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/externalUriResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +4 -4
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +3 -3
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.d.ts +24 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +11 -0
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - quickaccess service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "
|
|
25
|
-
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "
|
|
18
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "17.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "17.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "17.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "17.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "17.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "17.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "17.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "17.0.0"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|
|
@@ -7,7 +7,7 @@ import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
7
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
8
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
-
import { FastAndSlowPicks, IPickerQuickAccessItem, IPickerQuickAccessProviderOptions, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-
|
|
10
|
+
import { FastAndSlowPicks, IPickerQuickAccessItem, IPickerQuickAccessProviderOptions, PickerQuickAccessProvider, Picks } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
11
11
|
import { IQuickAccessProviderRunOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess";
|
|
12
12
|
import { IQuickPickSeparator } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
13
13
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
@@ -25,7 +25,6 @@ export interface ICommandsQuickAccessOptions extends IPickerQuickAccessProviderO
|
|
|
25
25
|
suggestedCommandIds?: Set<string>;
|
|
26
26
|
}
|
|
27
27
|
export declare abstract class AbstractCommandsQuickAccessProvider extends PickerQuickAccessProvider<ICommandQuickPick> implements IDisposable {
|
|
28
|
-
private readonly instantiationService;
|
|
29
28
|
protected readonly keybindingService: IKeybindingService;
|
|
30
29
|
private readonly commandService;
|
|
31
30
|
private readonly telemetryService;
|
|
@@ -14,7 +14,7 @@ import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
14
14
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
15
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
16
16
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
17
|
-
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-
|
|
17
|
+
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
18
18
|
import { WillSaveStateReason, StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
19
19
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
20
20
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
@@ -28,12 +28,11 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
28
28
|
static { this.WORD_FILTER = or(matchesPrefix, matchesWords, matchesContiguousSubString); }
|
|
29
29
|
constructor(options, instantiationService, keybindingService, commandService, telemetryService, dialogService) {
|
|
30
30
|
super(AbstractCommandsQuickAccessProvider_1.PREFIX, options);
|
|
31
|
-
this.instantiationService = instantiationService;
|
|
32
31
|
this.keybindingService = keybindingService;
|
|
33
32
|
this.commandService = commandService;
|
|
34
33
|
this.telemetryService = telemetryService;
|
|
35
34
|
this.dialogService = dialogService;
|
|
36
|
-
this.commandsHistory = this._register(
|
|
35
|
+
this.commandsHistory = this._register(instantiationService.createInstance(CommandsHistory));
|
|
37
36
|
this.options = options;
|
|
38
37
|
}
|
|
39
38
|
async _getPicks(filter, _disposables, token, runOptions) {
|
|
@@ -135,20 +134,20 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
135
134
|
for (let i = 0; i < filteredCommandPicks.length; i++) {
|
|
136
135
|
const commandPick = filteredCommandPicks[i];
|
|
137
136
|
if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
|
|
138
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
137
|
+
commandPicks.push({ type: 'separator', label: ( localize(1937, "recently used")) });
|
|
139
138
|
addOtherSeparator = true;
|
|
140
139
|
}
|
|
141
140
|
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
142
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
141
|
+
commandPicks.push({ type: 'separator', label: ( localize(1938, "similar commands")) });
|
|
143
142
|
addSuggestedSeparator = false;
|
|
144
143
|
}
|
|
145
144
|
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
146
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
145
|
+
commandPicks.push({ type: 'separator', label: ( localize(1939, "commonly used")) });
|
|
147
146
|
addOtherSeparator = true;
|
|
148
147
|
addCommonlyUsedSeparator = false;
|
|
149
148
|
}
|
|
150
149
|
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
|
|
151
|
-
commandPicks.push({ type: 'separator', label: ( localize(
|
|
150
|
+
commandPicks.push({ type: 'separator', label: ( localize(1940, "other commands")) });
|
|
152
151
|
addOtherSeparator = false;
|
|
153
152
|
}
|
|
154
153
|
commandPicks.push(this.toCommandPick(commandPick, runOptions));
|
|
@@ -165,7 +164,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
165
164
|
}
|
|
166
165
|
const commandPicks = ( additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions)));
|
|
167
166
|
if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
|
|
168
|
-
commandPicks.unshift({ type: 'separator', label: ( localize(
|
|
167
|
+
commandPicks.unshift({ type: 'separator', label: ( localize(1938, "similar commands")) });
|
|
169
168
|
}
|
|
170
169
|
return commandPicks;
|
|
171
170
|
})()
|
|
@@ -177,7 +176,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
177
176
|
}
|
|
178
177
|
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
179
178
|
const ariaLabel = keybinding ?
|
|
180
|
-
( localize(
|
|
179
|
+
( localize(1941, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
|
|
181
180
|
commandPick.label;
|
|
182
181
|
return {
|
|
183
182
|
...commandPick,
|
|
@@ -197,7 +196,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
|
|
|
197
196
|
}
|
|
198
197
|
catch (error) {
|
|
199
198
|
if (!isCancellationError(error)) {
|
|
200
|
-
this.dialogService.error(( localize(
|
|
199
|
+
this.dialogService.error(( localize(1942, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
}
|
|
@@ -48,7 +48,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
|
|
|
48
48
|
prefix,
|
|
49
49
|
label,
|
|
50
50
|
keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
|
|
51
|
-
ariaLabel: ( localize(
|
|
51
|
+
ariaLabel: ( localize(1943, "{0}, {1}", label, helpEntry.description)),
|
|
52
52
|
description: helpEntry.description
|
|
53
53
|
};
|
|
54
54
|
}));
|
|
@@ -7,7 +7,7 @@ import { ItemActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
7
7
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
8
8
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
9
9
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
10
|
-
import { inQuickPickContext, defaultQuickAccessContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-
|
|
10
|
+
import { inQuickPickContext, defaultQuickAccessContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/workbench/browser/quickaccess';
|
|
11
11
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
12
12
|
|
|
13
13
|
const globalQuickAccessKeybinding = {
|
|
@@ -105,7 +105,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
105
105
|
constructor() {
|
|
106
106
|
super({
|
|
107
107
|
id: 'workbench.action.quickOpen',
|
|
108
|
-
title: ( localize2(
|
|
108
|
+
title: ( localize2(2756, "Go to File...")),
|
|
109
109
|
metadata: {
|
|
110
110
|
description: `Quick access`,
|
|
111
111
|
args: [{
|
|
@@ -133,7 +133,7 @@ registerAction2(class QuickAccessAction extends Action2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'workbench.action.quickOpenWithModes',
|
|
136
|
-
title: ( localize(
|
|
136
|
+
title: ( localize(2757, "Quick Open")),
|
|
137
137
|
icon: Codicon.search,
|
|
138
138
|
menu: {
|
|
139
139
|
id: MenuId.CommandCenterCenter,
|
|
@@ -174,17 +174,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
|
|
|
174
174
|
}
|
|
175
175
|
class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
|
|
176
176
|
constructor() {
|
|
177
|
-
super('workbench.action.quickOpenNavigateNext', ( localize2(
|
|
177
|
+
super('workbench.action.quickOpenNavigateNext', ( localize2(2758, 'Navigate Next in Quick Open')), true, true);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
|
|
181
181
|
constructor() {
|
|
182
|
-
super('workbench.action.quickOpenNavigatePrevious', ( localize2(
|
|
182
|
+
super('workbench.action.quickOpenNavigatePrevious', ( localize2(2759, 'Navigate Previous in Quick Open')), false, true);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
186
186
|
constructor() {
|
|
187
|
-
super('workbench.action.quickOpenSelectNext', ( localize2(
|
|
187
|
+
super('workbench.action.quickOpenSelectNext', ( localize2(2760, 'Select Next in Quick Open')), true, false, {
|
|
188
188
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
189
189
|
when: inQuickPickContext,
|
|
190
190
|
primary: 0,
|
|
@@ -194,7 +194,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
|
|
|
194
194
|
}
|
|
195
195
|
class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
|
|
196
196
|
constructor() {
|
|
197
|
-
super('workbench.action.quickOpenSelectPrevious', ( localize2(
|
|
197
|
+
super('workbench.action.quickOpenSelectPrevious', ( localize2(2761, 'Select Previous in Quick Open')), false, false, {
|
|
198
198
|
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
199
199
|
when: inQuickPickContext,
|
|
200
200
|
primary: 0,
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
1
2
|
import { IKeyMods } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
2
3
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
3
4
|
import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
|
|
@@ -9,7 +10,7 @@ export declare class GotoLineQuickAccessProvider extends AbstractGotoLineQuickAc
|
|
|
9
10
|
private readonly editorService;
|
|
10
11
|
private readonly editorGroupService;
|
|
11
12
|
private readonly configurationService;
|
|
12
|
-
protected readonly onDidActiveTextEditorControlChange:
|
|
13
|
+
protected readonly onDidActiveTextEditorControlChange: Event<void>;
|
|
13
14
|
constructor(editorService: IEditorService, editorGroupService: IEditorGroupsService, configurationService: IConfigurationService);
|
|
14
15
|
private get configuration();
|
|
15
16
|
protected get activeTextEditorControl(): import("@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon").IEditor | import("@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon").IDiffEditor | undefined;
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js
CHANGED
|
@@ -54,7 +54,7 @@ class GotoLineAction extends Action2 {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: GotoLineAction.ID,
|
|
57
|
-
title: ( localize2(
|
|
57
|
+
title: ( localize2(5164, 'Go to Line/Column...')),
|
|
58
58
|
f1: true,
|
|
59
59
|
keybinding: {
|
|
60
60
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -73,10 +73,10 @@ registerAction2(GotoLineAction);
|
|
|
73
73
|
ctor: GotoLineQuickAccessProvider,
|
|
74
74
|
prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
75
75
|
placeholder: ( localize(
|
|
76
|
-
|
|
76
|
+
5165,
|
|
77
77
|
"Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
|
|
78
78
|
)),
|
|
79
|
-
helpEntries: [{ description: ( localize(
|
|
79
|
+
helpEntries: [{ description: ( localize(5166, "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
export { GotoLineQuickAccessProvider };
|
|
@@ -22,7 +22,6 @@ import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/work
|
|
|
22
22
|
export declare class CommandsQuickAccessProvider extends AbstractEditorCommandsQuickAccessProvider {
|
|
23
23
|
private readonly editorService;
|
|
24
24
|
private readonly menuService;
|
|
25
|
-
private readonly extensionService;
|
|
26
25
|
private readonly configurationService;
|
|
27
26
|
private readonly editorGroupService;
|
|
28
27
|
private readonly preferencesService;
|
|
@@ -20,7 +20,7 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
21
21
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
22
22
|
import { CommandsHistory } from '../../../../platform/quickinput/browser/commandsQuickAccess.js';
|
|
23
|
-
import { TriggerAction } from '@codingame/monaco-vscode-
|
|
23
|
+
import { TriggerAction } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
24
24
|
import { DefaultQuickAccessFilterValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess';
|
|
25
25
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
26
26
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
@@ -28,7 +28,7 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
28
28
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
29
29
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
30
30
|
import { ASK_QUICK_QUESTION_ACTION_ID, CHAT_OPEN_ACTION_ID } from '@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
31
|
-
import { RelatedInformationType } from '
|
|
31
|
+
import { RelatedInformationType } from '../../../services/aiRelatedInformation/common/aiRelatedInformation.js';
|
|
32
32
|
import { IAiRelatedInformationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service';
|
|
33
33
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
34
34
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -52,21 +52,20 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
52
52
|
super({
|
|
53
53
|
showAlias: !Language.isDefaultVariant(),
|
|
54
54
|
noResultsPick: () => ({
|
|
55
|
-
label: ( localize(
|
|
55
|
+
label: ( localize(8850, "No matching commands")),
|
|
56
56
|
commandId: ''
|
|
57
57
|
}),
|
|
58
58
|
}, instantiationService, keybindingService, commandService, telemetryService, dialogService);
|
|
59
59
|
this.editorService = editorService;
|
|
60
60
|
this.menuService = menuService;
|
|
61
|
-
this.extensionService = extensionService;
|
|
62
61
|
this.configurationService = configurationService;
|
|
63
62
|
this.editorGroupService = editorGroupService;
|
|
64
63
|
this.preferencesService = preferencesService;
|
|
65
64
|
this.productService = productService;
|
|
66
65
|
this.aiRelatedInformationService = aiRelatedInformationService;
|
|
67
66
|
this.chatAgentService = chatAgentService;
|
|
68
|
-
this.extensionRegistrationRace = raceTimeout(this.extensionService.whenInstalledExtensionsRegistered(), 800);
|
|
69
67
|
this.useAiRelatedInfo = false;
|
|
68
|
+
this.extensionRegistrationRace = raceTimeout(extensionService.whenInstalledExtensionsRegistered(), 800);
|
|
70
69
|
this._register(configurationService.onDidChangeConfiguration((e) => this.updateOptions(e)));
|
|
71
70
|
this.updateOptions();
|
|
72
71
|
}
|
|
@@ -100,7 +99,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
100
99
|
...picks,
|
|
101
100
|
buttons: [{
|
|
102
101
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
103
|
-
tooltip: ( localize(
|
|
102
|
+
tooltip: ( localize(8851, "Configure Keybinding")),
|
|
104
103
|
}],
|
|
105
104
|
trigger: () => {
|
|
106
105
|
this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
|
|
@@ -137,7 +136,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
137
136
|
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
138
137
|
if (defaultAgent) {
|
|
139
138
|
additionalPicks.push({
|
|
140
|
-
label: ( localize(
|
|
139
|
+
label: ( localize(8852, "Ask {0}: {1}", defaultAgent.fullName, filter)),
|
|
141
140
|
commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
|
|
142
141
|
args: [filter]
|
|
143
142
|
});
|
|
@@ -171,7 +170,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
171
170
|
let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
|
|
172
171
|
const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
|
|
173
172
|
if (category) {
|
|
174
|
-
label = ( localize(
|
|
173
|
+
label = ( localize(8853, "{0}: {1}", category, label));
|
|
175
174
|
}
|
|
176
175
|
const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
|
|
177
176
|
const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
|
|
@@ -214,7 +213,7 @@ class ShowAllCommandsAction extends Action2 {
|
|
|
214
213
|
constructor() {
|
|
215
214
|
super({
|
|
216
215
|
id: ShowAllCommandsAction.ID,
|
|
217
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(8854, 'Show All Commands')),
|
|
218
217
|
keybinding: {
|
|
219
218
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
220
219
|
when: undefined,
|
|
@@ -232,7 +231,7 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
232
231
|
constructor() {
|
|
233
232
|
super({
|
|
234
233
|
id: 'workbench.action.clearCommandHistory',
|
|
235
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(8855, 'Clear Command History')),
|
|
236
235
|
f1: true
|
|
237
236
|
});
|
|
238
237
|
}
|
|
@@ -244,9 +243,9 @@ class ClearCommandHistoryAction extends Action2 {
|
|
|
244
243
|
if (commandHistoryLength > 0) {
|
|
245
244
|
const { confirmed } = await dialogService.confirm({
|
|
246
245
|
type: 'warning',
|
|
247
|
-
message: ( localize(
|
|
248
|
-
detail: ( localize(
|
|
249
|
-
primaryButton: ( localize(
|
|
246
|
+
message: ( localize(8856, "Do you want to clear the history of recently used commands?")),
|
|
247
|
+
detail: ( localize(8857, "This action is irreversible!")),
|
|
248
|
+
primaryButton: ( localize(8858, "&&Clear"))
|
|
250
249
|
});
|
|
251
250
|
if (!confirmed) {
|
|
252
251
|
return;
|
|
@@ -8,7 +8,7 @@ import { ShowAllCommandsAction, CommandsQuickAccessProvider, ClearCommandHistory
|
|
|
8
8
|
import { MenuRegistry, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
9
9
|
import { KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
10
10
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
|
-
import { inQuickPickContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-
|
|
11
|
+
import { inQuickPickContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/workbench/browser/quickaccess';
|
|
12
12
|
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
13
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
14
14
|
|
|
@@ -17,35 +17,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
17
17
|
ctor: HelpQuickAccessProvider,
|
|
18
18
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
19
19
|
placeholder: ( localize(
|
|
20
|
-
|
|
20
|
+
8859,
|
|
21
21
|
"Type '{0}' to get help on the actions you can take from here.",
|
|
22
22
|
HelpQuickAccessProvider.PREFIX
|
|
23
23
|
)),
|
|
24
24
|
helpEntries: [{
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(8860, "Show all Quick Access Providers")),
|
|
26
26
|
commandCenterOrder: 70,
|
|
27
|
-
commandCenterLabel: ( localize(
|
|
27
|
+
commandCenterLabel: ( localize(8861, 'More'))
|
|
28
28
|
}]
|
|
29
29
|
});
|
|
30
30
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
31
31
|
ctor: ViewQuickAccessProvider,
|
|
32
32
|
prefix: ViewQuickAccessProvider.PREFIX,
|
|
33
33
|
contextKey: 'inViewsPicker',
|
|
34
|
-
placeholder: ( localize(
|
|
35
|
-
helpEntries: [{ description: ( localize(
|
|
34
|
+
placeholder: ( localize(8862, "Type the name of a view, output channel or terminal to open.")),
|
|
35
|
+
helpEntries: [{ description: ( localize(8863, "Open View")), commandId: OpenViewPickerAction.ID }]
|
|
36
36
|
});
|
|
37
37
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
38
38
|
ctor: CommandsQuickAccessProvider,
|
|
39
39
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
40
40
|
contextKey: 'inCommandsPicker',
|
|
41
|
-
placeholder: ( localize(
|
|
42
|
-
helpEntries: [{ description: ( localize(
|
|
41
|
+
placeholder: ( localize(8864, "Type the name of a command to run.")),
|
|
42
|
+
helpEntries: [{ description: ( localize(8865, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
|
|
43
43
|
});
|
|
44
44
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
45
45
|
group: '1_open',
|
|
46
46
|
command: {
|
|
47
47
|
id: ShowAllCommandsAction.ID,
|
|
48
|
-
title: ( localize(
|
|
48
|
+
title: ( localize(8866, "&&Command Palette..."))
|
|
49
49
|
},
|
|
50
50
|
order: 1
|
|
51
51
|
});
|
|
@@ -53,7 +53,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
53
53
|
group: '1_welcome',
|
|
54
54
|
command: {
|
|
55
55
|
id: ShowAllCommandsAction.ID,
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(8867, "Show All Commands"))
|
|
57
57
|
},
|
|
58
58
|
order: 2
|
|
59
59
|
});
|
|
@@ -61,7 +61,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
61
61
|
group: '1_open',
|
|
62
62
|
command: {
|
|
63
63
|
id: OpenViewPickerAction.ID,
|
|
64
|
-
title: ( localize(
|
|
64
|
+
title: ( localize(8868, "&&Open View..."))
|
|
65
65
|
},
|
|
66
66
|
order: 2
|
|
67
67
|
});
|
|
@@ -69,7 +69,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
69
69
|
group: '5_infile_nav',
|
|
70
70
|
command: {
|
|
71
71
|
id: 'workbench.action.gotoLine',
|
|
72
|
-
title: ( localize(
|
|
72
|
+
title: ( localize(8869, "Go to &&Line/Column..."))
|
|
73
73
|
},
|
|
74
74
|
order: 1
|
|
75
75
|
});
|
|
@@ -77,7 +77,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
77
77
|
group: '1_command',
|
|
78
78
|
command: {
|
|
79
79
|
id: ShowAllCommandsAction.ID,
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(8870, "Command Palette..."))
|
|
81
81
|
},
|
|
82
82
|
order: 1
|
|
83
83
|
});
|
|
@@ -86,7 +86,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
86
86
|
when: ( EditorContextKeys.editorSimpleInput.toNegated()),
|
|
87
87
|
command: {
|
|
88
88
|
id: ShowAllCommandsAction.ID,
|
|
89
|
-
title: ( localize(
|
|
89
|
+
title: ( localize(8870, "Command Palette...")),
|
|
90
90
|
},
|
|
91
91
|
order: 1
|
|
92
92
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IQuickPickSeparator } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
2
|
-
import { IPickerQuickAccessItem, PickerQuickAccessProvider } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IPickerQuickAccessItem, PickerQuickAccessProvider } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess";
|
|
3
3
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
4
4
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
5
5
|
import { IOutputService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/output/common/output.service";
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { ItemActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput';
|
|
5
5
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
6
|
-
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-
|
|
6
|
+
import { PickerQuickAccessProvider } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
7
7
|
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
8
8
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
9
9
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
@@ -28,7 +28,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
28
28
|
constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
|
|
29
29
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
30
30
|
noResultsPick: {
|
|
31
|
-
label: ( localize(
|
|
31
|
+
label: ( localize(8871, "No matching views")),
|
|
32
32
|
containerLabel: ''
|
|
33
33
|
}
|
|
34
34
|
});
|
|
@@ -116,9 +116,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(
|
|
120
|
-
addPaneComposites(ViewContainerLocation.Panel, ( localize(
|
|
121
|
-
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(
|
|
119
|
+
addPaneComposites(ViewContainerLocation.Sidebar, ( localize(8872, "Side Bar")));
|
|
120
|
+
addPaneComposites(ViewContainerLocation.Panel, ( localize(8873, "Panel")));
|
|
121
|
+
addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(8874, "Secondary Side Bar")));
|
|
122
122
|
const addPaneCompositeViews = (location) => {
|
|
123
123
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
124
124
|
for (const paneComposite of paneComposites) {
|
|
@@ -133,10 +133,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
133
133
|
addPaneCompositeViews(ViewContainerLocation.AuxiliaryBar);
|
|
134
134
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
135
135
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
136
|
-
const label = ( localize(
|
|
136
|
+
const label = ( localize(8875, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
137
137
|
viewEntries.push({
|
|
138
138
|
label,
|
|
139
|
-
containerLabel: ( localize(
|
|
139
|
+
containerLabel: ( localize(8876, "Terminal")),
|
|
140
140
|
accept: async () => {
|
|
141
141
|
await this.terminalGroupService.showPanel(true);
|
|
142
142
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -148,7 +148,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
148
148
|
const label = session.name;
|
|
149
149
|
viewEntries.push({
|
|
150
150
|
label,
|
|
151
|
-
containerLabel: ( localize(
|
|
151
|
+
containerLabel: ( localize(8877, "Debug Console")),
|
|
152
152
|
accept: async () => {
|
|
153
153
|
await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
|
|
154
154
|
if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
|
|
@@ -161,7 +161,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
161
161
|
for (const channel of channels) {
|
|
162
162
|
viewEntries.push({
|
|
163
163
|
label: channel.label,
|
|
164
|
-
containerLabel: ( localize(
|
|
164
|
+
containerLabel: ( localize(8878, "Output")),
|
|
165
165
|
accept: () => this.outputService.showChannel(channel.id)
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -190,7 +190,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
190
190
|
constructor() {
|
|
191
191
|
super({
|
|
192
192
|
id: OpenViewPickerAction.ID,
|
|
193
|
-
title: ( localize2(
|
|
193
|
+
title: ( localize2(8879, 'Open View')),
|
|
194
194
|
category: Categories.View,
|
|
195
195
|
f1: true
|
|
196
196
|
});
|
|
@@ -209,7 +209,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
209
209
|
constructor() {
|
|
210
210
|
super({
|
|
211
211
|
id: QuickAccessViewPickerAction.ID,
|
|
212
|
-
title: ( localize2(
|
|
212
|
+
title: ( localize2(8880, 'Quick Open View')),
|
|
213
213
|
category: Categories.View,
|
|
214
214
|
f1: false,
|
|
215
215
|
keybinding: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
3
3
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
4
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
5
5
|
export declare class ExternalUriResolverContribution extends Disposable implements IWorkbenchContribution {
|
|
6
6
|
static readonly ID = "workbench.contrib.externalUriResolver";
|
|
7
7
|
constructor(_openerService: IOpenerService, _workbenchEnvironmentService: IBrowserWorkbenchEnvironmentService);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
5
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
5
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
6
6
|
|
|
7
7
|
let ExternalUriResolverContribution = class ExternalUriResolverContribution extends Disposable {
|
|
8
8
|
static { this.ID = 'workbench.contrib.externalUriResolver'; }
|
|
@@ -68,25 +68,25 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
68
68
|
const { result } = await this._dialogService.prompt({
|
|
69
69
|
type: Severity.Info,
|
|
70
70
|
message: ( localize(
|
|
71
|
-
|
|
71
|
+
11235,
|
|
72
72
|
'Do you want {0} to open the external website?',
|
|
73
73
|
this._productService.nameShort
|
|
74
74
|
)),
|
|
75
75
|
detail: typeof originalResource === 'string' ? originalResource : formattedLink,
|
|
76
76
|
buttons: [
|
|
77
77
|
{
|
|
78
|
-
label: ( localize(
|
|
78
|
+
label: ( localize(11236, '&&Open')),
|
|
79
79
|
run: () => true
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(11237, '&&Copy')),
|
|
83
83
|
run: () => {
|
|
84
84
|
this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( resourceUri.toString(true)));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
label: ( localize(
|
|
89
|
+
label: ( localize(11238, 'Configure &&Trusted Domains')),
|
|
90
90
|
run: async () => {
|
|
91
91
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
92
92
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -23,7 +23,7 @@ class OpenUrlAction extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: 'workbench.action.url.openUrl',
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(11239, 'Open URL')),
|
|
27
27
|
category: Categories.Developer,
|
|
28
28
|
f1: true
|
|
29
29
|
});
|
|
@@ -31,7 +31,7 @@ class OpenUrlAction extends Action2 {
|
|
|
31
31
|
async run(accessor) {
|
|
32
32
|
const quickInputService = accessor.get(IQuickInputService);
|
|
33
33
|
const urlService = accessor.get(IURLService);
|
|
34
|
-
return quickInputService.input({ prompt: ( localize(
|
|
34
|
+
return quickInputService.input({ prompt: ( localize(11240, "URL to open")) }).then(input => {
|
|
35
35
|
if (input) {
|
|
36
36
|
const uri = ( URI.parse(input));
|
|
37
37
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -61,7 +61,7 @@ configurationRegistry.registerConfiguration({
|
|
|
61
61
|
type: 'boolean',
|
|
62
62
|
default: false,
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
11241,
|
|
65
65
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
66
66
|
))
|
|
67
67
|
}
|
package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
export declare enum RelatedInformationType {
|
|
3
|
+
SymbolInformation = 1,
|
|
4
|
+
CommandInformation = 2,
|
|
5
|
+
SearchInformation = 3,
|
|
6
|
+
SettingInformation = 4
|
|
7
|
+
}
|
|
8
|
+
interface RelatedInformationBaseResult {
|
|
9
|
+
type: RelatedInformationType;
|
|
10
|
+
weight: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CommandInformationResult extends RelatedInformationBaseResult {
|
|
13
|
+
type: RelatedInformationType.CommandInformation;
|
|
14
|
+
command: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SettingInformationResult extends RelatedInformationBaseResult {
|
|
17
|
+
type: RelatedInformationType.SettingInformation;
|
|
18
|
+
setting: string;
|
|
19
|
+
}
|
|
20
|
+
export type RelatedInformationResult = CommandInformationResult | SettingInformationResult;
|
|
21
|
+
export interface IAiRelatedInformationProvider {
|
|
22
|
+
provideAiRelatedInformation(query: string, token: CancellationToken): Promise<RelatedInformationResult[]>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var RelatedInformationType;
|
|
4
|
+
(function (RelatedInformationType) {
|
|
5
|
+
RelatedInformationType[RelatedInformationType["SymbolInformation"] = 1] = "SymbolInformation";
|
|
6
|
+
RelatedInformationType[RelatedInformationType["CommandInformation"] = 2] = "CommandInformation";
|
|
7
|
+
RelatedInformationType[RelatedInformationType["SearchInformation"] = 3] = "SearchInformation";
|
|
8
|
+
RelatedInformationType[RelatedInformationType["SettingInformation"] = 4] = "SettingInformation";
|
|
9
|
+
})(RelatedInformationType || (RelatedInformationType = {}));
|
|
10
|
+
|
|
11
|
+
export { RelatedInformationType };
|
|
@@ -8,7 +8,7 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
8
8
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
9
9
|
import { QuickInputService as QuickInputService$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/browser/quickInputService';
|
|
10
10
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
-
import { InQuickPickContextKey } from '@codingame/monaco-vscode-
|
|
11
|
+
import { InQuickPickContextKey } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/workbench/browser/quickaccess';
|
|
12
12
|
|
|
13
13
|
let QuickInputService = class QuickInputService extends QuickInputService$1 {
|
|
14
14
|
constructor(configurationService, instantiationService, keybindingService, contextKeyService, themeService, layoutService) {
|