@codingame/monaco-vscode-quickaccess-service-override 3.2.2 → 4.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/override/vs/platform/dialogs/common/dialogs.js +2 -0
- package/package.json +2 -2
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +6 -2
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +2 -2
- package/vscode/src/vs/workbench/services/quickinput/browser/quickInputService.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
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@4.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -12,6 +12,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
12
12
|
import '../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
13
13
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
14
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
15
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
15
16
|
import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
16
17
|
import { WillSaveStateReason, IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
17
18
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
@@ -257,10 +258,11 @@ let CommandsHistory = class CommandsHistory extends Disposable {
|
|
|
257
258
|
static { this.PREF_KEY_COUNTER = 'commandPalette.mru.counter'; }
|
|
258
259
|
static { this.counter = 1; }
|
|
259
260
|
static { this.hasChanges = false; }
|
|
260
|
-
constructor(storageService, configurationService) {
|
|
261
|
+
constructor(storageService, configurationService, logService) {
|
|
261
262
|
super();
|
|
262
263
|
this.storageService = storageService;
|
|
263
264
|
this.configurationService = configurationService;
|
|
265
|
+
this.logService = logService;
|
|
264
266
|
this.configuredCommandsHistoryLength = 0;
|
|
265
267
|
this.updateConfiguration();
|
|
266
268
|
this.load();
|
|
@@ -292,6 +294,7 @@ let CommandsHistory = class CommandsHistory extends Disposable {
|
|
|
292
294
|
serializedCache = JSON.parse(raw);
|
|
293
295
|
}
|
|
294
296
|
catch (error) {
|
|
297
|
+
this.logService.error(`[CommandsHistory] invalid data: ${error}`);
|
|
295
298
|
}
|
|
296
299
|
}
|
|
297
300
|
const cache = CommandsHistory_1.cache = ( new LRUCache(this.configuredCommandsHistoryLength, 1));
|
|
@@ -347,7 +350,8 @@ let CommandsHistory = class CommandsHistory extends Disposable {
|
|
|
347
350
|
};
|
|
348
351
|
CommandsHistory = CommandsHistory_1 = ( __decorate([
|
|
349
352
|
( __param(0, IStorageService)),
|
|
350
|
-
( __param(1, IConfigurationService))
|
|
353
|
+
( __param(1, IConfigurationService)),
|
|
354
|
+
( __param(2, ILogService))
|
|
351
355
|
], CommandsHistory));
|
|
352
356
|
|
|
353
357
|
export { AbstractCommandsQuickAccessProvider, CommandsHistory };
|
|
@@ -23,7 +23,7 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
|
|
|
23
23
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
24
24
|
import { CHAT_OPEN_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
25
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';
|
|
26
|
+
import { ChatAgentLocation, IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
27
27
|
import { RelatedInformationType, IAiRelatedInformationService } from 'vscode/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation';
|
|
28
28
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
29
29
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -138,7 +138,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
|
|
|
138
138
|
type: 'separator'
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
const defaultAgent = this.chatAgentService.getDefaultAgent();
|
|
141
|
+
const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
|
|
142
142
|
if (defaultAgent) {
|
|
143
143
|
additionalPicks.push({
|
|
144
144
|
label: ( localizeWithPath(
|
|
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import { WindowIdleValue } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
3
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
4
4
|
import { matchesScheme, Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
5
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
6
6
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
7
7
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
8
8
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
@@ -96,7 +96,7 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
96
96
|
formattedLink += linkTail.charAt(0) + '...' + linkTail.substring(linkTail.length - linkTailLengthToKeep + 1);
|
|
97
97
|
}
|
|
98
98
|
const { result } = await this._dialogService.prompt({
|
|
99
|
-
type: Severity.Info,
|
|
99
|
+
type: Severity$1.Info,
|
|
100
100
|
message: ( localizeWithPath(
|
|
101
101
|
'vs/workbench/contrib/url/browser/trustedDomainsValidator',
|
|
102
102
|
'openExternalLinkAt',
|
|
@@ -6,6 +6,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
6
6
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
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
|
+
import 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
9
10
|
import { InQuickPickContextKey } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
10
11
|
|
|
11
12
|
let QuickInputService = class QuickInputService extends QuickInputService$1 {
|