@codingame/monaco-vscode-quickaccess-service-override 2.0.3-improve-modularity.1 → 2.1.0-update-vscode-1.86.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-quickaccess-service-override",
3
- "version": "2.0.3-improve-modularity.1",
3
+ "version": "2.1.0-update-vscode-1.86.1",
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@2.0.3-improve-modularity.1",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@2.1.0-update-vscode-1.86.1",
22
22
  "vscode-marked": "npm:marked@=3.0.2"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localizeWithPath, localize2WithPath } 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';
@@ -181,29 +181,29 @@ class BaseQuickAccessNavigateAction extends Action2 {
181
181
  }
182
182
  class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
183
183
  constructor() {
184
- super('workbench.action.quickOpenNavigateNext', { value: ( localizeWithPath(
184
+ super('workbench.action.quickOpenNavigateNext', ( localize2WithPath(
185
185
  'vs/workbench/browser/actions/quickAccessActions',
186
186
  'quickNavigateNext',
187
- "Navigate Next in Quick Open"
188
- )), original: 'Navigate Next in Quick Open' }, true, true);
187
+ 'Navigate Next in Quick Open'
188
+ )), true, true);
189
189
  }
190
190
  }
191
191
  class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
192
192
  constructor() {
193
- super('workbench.action.quickOpenNavigatePrevious', { value: ( localizeWithPath(
193
+ super('workbench.action.quickOpenNavigatePrevious', ( localize2WithPath(
194
194
  'vs/workbench/browser/actions/quickAccessActions',
195
195
  'quickNavigatePrevious',
196
- "Navigate Previous in Quick Open"
197
- )), original: 'Navigate Previous in Quick Open' }, false, true);
196
+ 'Navigate Previous in Quick Open'
197
+ )), false, true);
198
198
  }
199
199
  }
200
200
  class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
201
201
  constructor() {
202
- super('workbench.action.quickOpenSelectNext', { value: ( localizeWithPath(
202
+ super('workbench.action.quickOpenSelectNext', ( localize2WithPath(
203
203
  'vs/workbench/browser/actions/quickAccessActions',
204
204
  'quickSelectNext',
205
- "Select Next in Quick Open"
206
- )), original: 'Select Next in Quick Open' }, true, false, {
205
+ 'Select Next in Quick Open'
206
+ )), true, false, {
207
207
  weight: 200 + 50,
208
208
  when: inQuickPickContext,
209
209
  primary: 0,
@@ -213,11 +213,11 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
213
213
  }
214
214
  class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
215
215
  constructor() {
216
- super('workbench.action.quickOpenSelectPrevious', { value: ( localizeWithPath(
216
+ super('workbench.action.quickOpenSelectPrevious', ( localize2WithPath(
217
217
  'vs/workbench/browser/actions/quickAccessActions',
218
218
  'quickSelectPrevious',
219
- "Select Previous in Quick Open"
220
- )), original: 'Select Previous in Quick Open' }, false, false, {
219
+ 'Select Previous in Quick Open'
220
+ )), false, false, {
221
221
  weight: 200 + 50,
222
222
  when: inQuickPickContext,
223
223
  primary: 0,
@@ -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 { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
4
4
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
5
5
  import { AbstractGotoLineQuickAccessProvider } from 'vscode/vscode/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess';
@@ -51,11 +51,11 @@ class GotoLineAction extends Action2 {
51
51
  constructor() {
52
52
  super({
53
53
  id: GotoLineAction.ID,
54
- title: { value: ( localizeWithPath(
54
+ title: ( localize2WithPath(
55
55
  'vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess',
56
56
  'gotoLine',
57
- "Go to Line/Column..."
58
- )), original: 'Go to Line/Column...' },
57
+ 'Go to Line/Column...'
58
+ )),
59
59
  f1: true,
60
60
  keybinding: {
61
61
  weight: 200 ,
@@ -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 { CommandsHistory } from '../../../../platform/quickinput/browser/commandsQuickAccess.js';
4
4
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
5
5
  import { MenuId, MenuItemAction, Action2, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
@@ -230,11 +230,11 @@ class ShowAllCommandsAction extends Action2 {
230
230
  constructor() {
231
231
  super({
232
232
  id: ShowAllCommandsAction.ID,
233
- title: { value: ( localizeWithPath(
233
+ title: ( localize2WithPath(
234
234
  'vs/workbench/contrib/quickaccess/browser/commandsQuickAccess',
235
235
  'showTriggerActions',
236
- "Show All Commands"
237
- )), original: 'Show All Commands' },
236
+ 'Show All Commands'
237
+ )),
238
238
  keybinding: {
239
239
  weight: 200 ,
240
240
  when: undefined,
@@ -252,11 +252,11 @@ class ClearCommandHistoryAction extends Action2 {
252
252
  constructor() {
253
253
  super({
254
254
  id: 'workbench.action.clearCommandHistory',
255
- title: { value: ( localizeWithPath(
255
+ title: ( localize2WithPath(
256
256
  'vs/workbench/contrib/quickaccess/browser/commandsQuickAccess',
257
257
  'clearCommandHistory',
258
- "Clear Command History"
259
- )), original: 'Clear Command History' },
258
+ 'Clear Command History'
259
+ )),
260
260
  f1: true
261
261
  });
262
262
  }
@@ -1,8 +1,9 @@
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 { IQuickInputService, ItemActivation } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
4
4
  import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
5
- import { IViewDescriptorService, IViewsService } from 'vscode/vscode/vs/workbench/common/views';
5
+ import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
6
+ import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
6
7
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output';
7
8
  import { ITerminalService, ITerminalGroupService } from 'vscode/vscode/vs/workbench/contrib/terminal/browser/terminal';
8
9
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
@@ -217,11 +218,11 @@ class OpenViewPickerAction extends Action2 {
217
218
  constructor() {
218
219
  super({
219
220
  id: OpenViewPickerAction.ID,
220
- title: { value: ( localizeWithPath(
221
+ title: ( localize2WithPath(
221
222
  'vs/workbench/contrib/quickaccess/browser/viewQuickAccess',
222
223
  'openView',
223
- "Open View"
224
- )), original: 'Open View' },
224
+ 'Open View'
225
+ )),
225
226
  category: Categories.View,
226
227
  f1: true
227
228
  });
@@ -240,11 +241,11 @@ class QuickAccessViewPickerAction extends Action2 {
240
241
  constructor() {
241
242
  super({
242
243
  id: QuickAccessViewPickerAction.ID,
243
- title: { value: ( localizeWithPath(
244
+ title: ( localize2WithPath(
244
245
  'vs/workbench/contrib/quickaccess/browser/viewQuickAccess',
245
246
  'quickOpenView',
246
- "Quick Open View"
247
- )), original: 'Quick Open View' },
247
+ 'Quick Open View'
248
+ )),
248
249
  category: Categories.View,
249
250
  f1: false,
250
251
  keybinding: {
@@ -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 { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
3
3
  import { registerAction2, MenuRegistry, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
4
4
  import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
5
5
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
@@ -18,7 +18,7 @@ class OpenUrlAction extends Action2 {
18
18
  constructor() {
19
19
  super({
20
20
  id: 'workbench.action.url.openUrl',
21
- title: { value: ( localizeWithPath('vs/workbench/contrib/url/browser/url.contribution', 'openUrl', "Open URL")), original: 'Open URL' },
21
+ title: ( localize2WithPath('vs/workbench/contrib/url/browser/url.contribution', 'openUrl', 'Open URL')),
22
22
  category: Categories.Developer,
23
23
  f1: true
24
24
  });
@@ -7,15 +7,12 @@ 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/workbench/services/hover/browser/hover';
10
+ import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
11
11
 
12
12
  let QuickInputService = class QuickInputService extends QuickInputService$1 {
13
13
  constructor(configurationService, instantiationService, keybindingService, contextKeyService, themeService, layoutService, hoverService) {
14
- super(instantiationService, contextKeyService, themeService, layoutService);
15
- this.configurationService = configurationService;
14
+ super(instantiationService, contextKeyService, themeService, layoutService, configurationService, hoverService);
16
15
  this.keybindingService = keybindingService;
17
- this.hoverService = hoverService;
18
- this.hoverDelegate = ( new QuickInputHoverDelegate(this.configurationService, this.hoverService));
19
16
  this.inQuickInputContext = InQuickPickContextKey.bindTo(this.contextKeyService);
20
17
  this.registerListeners();
21
18
  }
@@ -27,7 +24,6 @@ let QuickInputService = class QuickInputService extends QuickInputService$1 {
27
24
  return super.createController(this.layoutService, {
28
25
  ignoreFocusOut: () => !this.configurationService.getValue('workbench.quickOpen.closeOnFocusLost'),
29
26
  backKeybindingLabel: () => this.keybindingService.lookupKeybinding('workbench.action.quickInputBack')?.getLabel() || undefined,
30
- hoverDelegate: this.hoverDelegate
31
27
  });
32
28
  }
33
29
  };
@@ -40,39 +36,5 @@ QuickInputService = ( __decorate([
40
36
  ( __param(5, ILayoutService)),
41
37
  ( __param(6, IHoverService))
42
38
  ], QuickInputService));
43
- class QuickInputHoverDelegate {
44
- get delay() {
45
- if (Date.now() - this.lastHoverHideTime < 200) {
46
- return 0;
47
- }
48
- return this.configurationService.getValue('workbench.hover.delay');
49
- }
50
- constructor(configurationService, hoverService) {
51
- this.configurationService = configurationService;
52
- this.hoverService = hoverService;
53
- this.lastHoverHideTime = 0;
54
- this.placement = 'element';
55
- }
56
- showHover(options, focus) {
57
- const showHoverHint = (options.content instanceof HTMLElement
58
- ? options.content.textContent ?? ''
59
- : typeof options.content === 'string'
60
- ? options.content
61
- : options.content.value).length > 20;
62
- return this.hoverService.showHover({
63
- ...options,
64
- persistence: {
65
- hideOnKeyDown: false,
66
- },
67
- appearance: {
68
- showHoverHint,
69
- skipFadeInAnimation: true,
70
- },
71
- }, focus);
72
- }
73
- onDidHideHover() {
74
- this.lastHoverHideTime = Date.now();
75
- }
76
- }
77
39
 
78
40
  export { QuickInputService };