@codingame/monaco-vscode-markers-service-override 11.1.2 → 12.0.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.
Files changed (25) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +9 -1
  3. package/package.json +20 -7
  4. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.d.ts +1 -0
  5. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +114 -123
  6. package/vscode/src/vs/workbench/contrib/markers/browser/markers.d.ts +19 -0
  7. package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.d.ts +1 -0
  8. package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +16 -14
  9. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.d.ts +33 -0
  10. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +1 -0
  11. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.d.ts +71 -0
  12. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +1 -0
  13. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.d.ts +46 -0
  14. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +53 -53
  15. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.d.ts +185 -0
  16. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +116 -109
  17. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.d.ts +138 -0
  18. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +79 -83
  19. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.d.ts +65 -0
  21. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +3 -2
  22. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/markers/browser/messages.d.ts +45 -0
  24. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +50 -49
  25. package/markers.js +0 -7
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { default } from 'vscode/service-override/markers';
1
+ import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
2
+ export default function getServiceOverride(): IEditorOverrideServices;
package/index.js CHANGED
@@ -1 +1,9 @@
1
- export { default } from './markers.js';
1
+
2
+ import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
3
+ import './vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js';
4
+
5
+ function getServiceOverride() {
6
+ return {};
7
+ }
8
+
9
+ export { getServiceOverride as default };
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-markers-service-override",
3
- "version": "11.1.2",
3
+ "version": "12.0.1",
4
+ "private": false,
5
+ "description": "VSCode public API plugged on the monaco editor - markers service-override",
4
6
  "keywords": [],
5
7
  "author": {
6
8
  "name": "CodinGame",
@@ -12,8 +14,17 @@
12
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
13
15
  },
14
16
  "type": "module",
15
- "private": false,
16
- "description": "VSCode public API plugged on the monaco editor - markers service-override",
17
+ "dependencies": {
18
+ "@codingame/monaco-vscode-2448342b-297f-5823-9f41-f18eef0f6ee8-common": "12.0.1",
19
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "12.0.1",
20
+ "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.1",
21
+ "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.1",
22
+ "@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "12.0.1",
23
+ "@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.1",
24
+ "vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
25
+ },
26
+ "peerDependencies": {},
27
+ "peerDependenciesMeta": {},
17
28
  "main": "index.js",
18
29
  "module": "index.js",
19
30
  "types": "index.d.ts",
@@ -22,10 +33,12 @@
22
33
  "default": "./index.js"
23
34
  },
24
35
  "./vscode/*": {
25
- "default": "./vscode/src/*.js"
36
+ "default": "./vscode/src/*.js",
37
+ "types": "./vscode/src/*.d.ts"
38
+ },
39
+ "./*": {
40
+ "default": "./*.js",
41
+ "types": "./*.d.ts"
26
42
  }
27
- },
28
- "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
30
43
  }
31
44
  }
@@ -1,43 +1,47 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import './markersFileDecorations.js';
3
4
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
5
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
5
6
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
6
- import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
7
+ import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
8
+ import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
7
9
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
8
10
  import { Marker, ResourceMarkers, RelatedInformation } from './markersModel.js';
9
11
  import { MarkersView } from './markersView.js';
10
12
  import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
11
13
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
12
- import { Markers, MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
14
+ import { Markers, MarkersContextKeys, MarkersViewMode } from '@codingame/monaco-vscode-2448342b-297f-5823-9f41-f18eef0f6ee8-common/vscode/vs/workbench/contrib/markers/common/markers';
13
15
  import Messages from './messages.js';
14
16
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/contributions';
17
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
15
18
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
16
19
  import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
20
+ import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
17
21
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
18
22
  import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
19
- import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
23
+ import { Extensions as Extensions$1, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
20
24
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
21
25
  import { FocusedViewContext, getVisbileViewContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
22
- import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
26
+ import { ViewPaneContainer } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
23
27
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
24
28
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
25
29
  import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
26
- import { ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
27
- import { NumberBadge } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
30
+ import { ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
31
+ import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
28
32
  import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
29
- import { viewFilterSubmenu } from 'vscode/vscode/vs/workbench/browser/parts/views/viewFilter';
33
+ import { viewFilterSubmenu } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewFilter';
30
34
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
31
35
  import { problemsConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
32
36
 
33
37
  KeybindingsRegistry.registerCommandAndKeybindingRule({
34
38
  id: Markers.MARKER_OPEN_ACTION_ID,
35
- weight: 200 ,
36
- when: ( (ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey))),
37
- primary: 3 ,
39
+ weight: KeybindingWeight.WorkbenchContrib,
40
+ when: ( ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey)),
41
+ primary: KeyCode.Enter,
38
42
  mac: {
39
- primary: 3 ,
40
- secondary: [2048 | 18 ]
43
+ primary: KeyCode.Enter,
44
+ secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow]
41
45
  },
42
46
  handler: (accessor, args) => {
43
47
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
@@ -46,11 +50,11 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
46
50
  });
47
51
  KeybindingsRegistry.registerCommandAndKeybindingRule({
48
52
  id: Markers.MARKER_OPEN_SIDE_ACTION_ID,
49
- weight: 200 ,
50
- when: ( (ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey))),
51
- primary: 2048 | 3 ,
53
+ weight: KeybindingWeight.WorkbenchContrib,
54
+ when: ( ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey)),
55
+ primary: KeyMod.CtrlCmd | KeyCode.Enter,
52
56
  mac: {
53
- primary: 256 | 3
57
+ primary: KeyMod.WinCtrl | KeyCode.Enter
54
58
  },
55
59
  handler: (accessor, args) => {
56
60
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
@@ -59,7 +63,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
59
63
  });
60
64
  KeybindingsRegistry.registerCommandAndKeybindingRule({
61
65
  id: Markers.MARKER_SHOW_PANEL_ID,
62
- weight: 200 ,
66
+ weight: KeybindingWeight.WorkbenchContrib,
63
67
  when: undefined,
64
68
  primary: undefined,
65
69
  handler: async (accessor, args) => {
@@ -68,9 +72,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
68
72
  });
69
73
  KeybindingsRegistry.registerCommandAndKeybindingRule({
70
74
  id: Markers.MARKER_SHOW_QUICK_FIX,
71
- weight: 200 ,
75
+ weight: KeybindingWeight.WorkbenchContrib,
72
76
  when: MarkersContextKeys.MarkerFocusContextKey,
73
- primary: 2048 | 89 ,
77
+ primary: KeyMod.CtrlCmd | KeyCode.Period,
74
78
  handler: (accessor, args) => {
75
79
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
76
80
  const focusedElement = markersView.getFocusElement();
@@ -79,7 +83,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
79
83
  }
80
84
  }
81
85
  });
82
- ( (Registry.as(Extensions.Configuration))).registerConfiguration({
86
+ ( Registry.as(Extensions.Configuration)).registerConfiguration({
83
87
  ...problemsConfigurationNodeBase,
84
88
  'properties': {
85
89
  'problems.autoReveal': {
@@ -110,48 +114,45 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
110
114
  },
111
115
  }
112
116
  });
113
- const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(2339, 'View icon of the markers view.')));
114
- const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).registerViewContainer({
117
+ const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(7044, 'View icon of the markers view.')));
118
+ const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
115
119
  id: Markers.MARKERS_CONTAINER_ID,
116
120
  title: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
117
121
  icon: markersViewIcon,
118
122
  hideIfEmpty: true,
119
123
  order: 0,
120
- ctorDescriptor: ( (new SyncDescriptor(
124
+ ctorDescriptor: ( new SyncDescriptor(
121
125
  ViewPaneContainer,
122
126
  [Markers.MARKERS_CONTAINER_ID, { mergeViewWithContainerWhenSingleView: true }]
123
- ))),
127
+ )),
124
128
  storageId: Markers.MARKERS_VIEW_STORAGE_ID,
125
- }, 1 , { doNotRegisterOpenCommand: true });
126
- ( (Registry.as(Extensions$1.ViewsRegistry))).registerViews([{
129
+ }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
130
+ ( Registry.as(Extensions$1.ViewsRegistry)).registerViews([{
127
131
  id: Markers.MARKERS_VIEW_ID,
128
132
  containerIcon: markersViewIcon,
129
133
  name: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
130
134
  canToggleVisibility: false,
131
135
  canMoveView: true,
132
- ctorDescriptor: ( (new SyncDescriptor(MarkersView))),
136
+ ctorDescriptor: ( new SyncDescriptor(MarkersView)),
133
137
  openCommandActionDescriptor: {
134
138
  id: 'workbench.actions.view.problems',
135
- mnemonicTitle: ( localize(2340, "&&Problems")),
136
- keybindings: { primary: 2048 | 1024 | 43 },
139
+ mnemonicTitle: ( localize(7045, "&&Problems")),
140
+ keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM },
137
141
  order: 0,
138
142
  }
139
143
  }], VIEW_CONTAINER);
140
- const workbenchRegistry = ( (Registry.as(Extensions$2.Workbench)));
144
+ const workbenchRegistry = ( Registry.as(Extensions$2.Workbench));
141
145
  registerAction2(class extends ViewAction {
142
146
  constructor() {
143
147
  super({
144
148
  id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
145
- title: ( localize(2341, "View as Tree")),
149
+ title: ( localize(7046, "View as Tree")),
146
150
  metadata: {
147
- description: ( localize2(2342, "Show the problems view as a tree."))
151
+ description: ( localize2(7047, "Show the problems view as a tree."))
148
152
  },
149
153
  menu: {
150
154
  id: MenuId.ViewTitle,
151
- when: ( (ContextKeyExpr.and(
152
- (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
153
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("table" ))
154
- ))),
155
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Table)))),
155
156
  group: 'navigation',
156
157
  order: 3
157
158
  },
@@ -160,23 +161,20 @@ registerAction2(class extends ViewAction {
160
161
  });
161
162
  }
162
163
  async runInView(serviceAccessor, view) {
163
- view.setViewMode("tree" );
164
+ view.setViewMode(MarkersViewMode.Tree);
164
165
  }
165
166
  });
166
167
  registerAction2(class extends ViewAction {
167
168
  constructor() {
168
169
  super({
169
170
  id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
170
- title: ( localize(2343, "View as Table")),
171
+ title: ( localize(7048, "View as Table")),
171
172
  metadata: {
172
- description: ( localize2(2344, "Show the problems view as a table."))
173
+ description: ( localize2(7049, "Show the problems view as a table."))
173
174
  },
174
175
  menu: {
175
176
  id: MenuId.ViewTitle,
176
- when: ( (ContextKeyExpr.and(
177
- (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
178
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" ))
179
- ))),
177
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree)))),
180
178
  group: 'navigation',
181
179
  order: 3
182
180
  },
@@ -185,23 +183,23 @@ registerAction2(class extends ViewAction {
185
183
  });
186
184
  }
187
185
  async runInView(serviceAccessor, view) {
188
- view.setViewMode("table" );
186
+ view.setViewMode(MarkersViewMode.Table);
189
187
  }
190
188
  });
191
189
  registerAction2(class extends ViewAction {
192
190
  constructor() {
193
191
  super({
194
192
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
195
- title: ( localize(2345, "Show Errors")),
193
+ title: ( localize(7050, "Show Errors")),
196
194
  metadata: {
197
- description: ( localize2(2346, "Show or hide errors in the problems view."))
195
+ description: ( localize2(7051, "Show or hide errors in the problems view."))
198
196
  },
199
- category: ( localize(2347, "Problems")),
197
+ category: ( localize(7052, "Problems")),
200
198
  toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
201
199
  menu: {
202
200
  id: viewFilterSubmenu,
203
201
  group: '1_filter',
204
- when: ( (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID))),
202
+ when: ( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
205
203
  order: 1
206
204
  },
207
205
  viewId: Markers.MARKERS_VIEW_ID
@@ -215,16 +213,16 @@ registerAction2(class extends ViewAction {
215
213
  constructor() {
216
214
  super({
217
215
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
218
- title: ( localize(2348, "Show Warnings")),
216
+ title: ( localize(7053, "Show Warnings")),
219
217
  metadata: {
220
- description: ( localize2(2349, "Show or hide warnings in the problems view."))
218
+ description: ( localize2(7054, "Show or hide warnings in the problems view."))
221
219
  },
222
- category: ( localize(2347, "Problems")),
220
+ category: ( localize(7052, "Problems")),
223
221
  toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
224
222
  menu: {
225
223
  id: viewFilterSubmenu,
226
224
  group: '1_filter',
227
- when: ( (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID))),
225
+ when: ( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
228
226
  order: 2
229
227
  },
230
228
  viewId: Markers.MARKERS_VIEW_ID
@@ -238,16 +236,16 @@ registerAction2(class extends ViewAction {
238
236
  constructor() {
239
237
  super({
240
238
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
241
- title: ( localize(2350, "Show Infos")),
242
- category: ( localize(2347, "Problems")),
239
+ title: ( localize(7055, "Show Infos")),
240
+ category: ( localize(7052, "Problems")),
243
241
  toggled: MarkersContextKeys.ShowInfoFilterContextKey,
244
242
  metadata: {
245
- description: ( localize2(2351, "Show or hide infos in the problems view."))
243
+ description: ( localize2(7056, "Show or hide infos in the problems view."))
246
244
  },
247
245
  menu: {
248
246
  id: viewFilterSubmenu,
249
247
  group: '1_filter',
250
- when: ( (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID))),
248
+ when: ( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
251
249
  order: 3
252
250
  },
253
251
  viewId: Markers.MARKERS_VIEW_ID
@@ -261,19 +259,19 @@ registerAction2(class extends ViewAction {
261
259
  constructor() {
262
260
  super({
263
261
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
264
- title: ( localize(2352, "Show Active File Only")),
262
+ title: ( localize(7057, "Show Active File Only")),
265
263
  metadata: {
266
264
  description: ( localize2(
267
- 2353,
265
+ 7058,
268
266
  "Show or hide problems (errors, warnings, info) only from the active file in the problems view."
269
267
  ))
270
268
  },
271
- category: ( localize(2347, "Problems")),
269
+ category: ( localize(7052, "Problems")),
272
270
  toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
273
271
  menu: {
274
272
  id: viewFilterSubmenu,
275
273
  group: '2_filter',
276
- when: ( (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID))),
274
+ when: ( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
277
275
  order: 1
278
276
  },
279
277
  viewId: Markers.MARKERS_VIEW_ID
@@ -287,16 +285,16 @@ registerAction2(class extends ViewAction {
287
285
  constructor() {
288
286
  super({
289
287
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
290
- title: ( localize(2354, "Show Excluded Files")),
288
+ title: ( localize(7059, "Show Excluded Files")),
291
289
  metadata: {
292
- description: ( localize2(2355, "Show or hide excluded files in the problems view."))
290
+ description: ( localize2(7060, "Show or hide excluded files in the problems view."))
293
291
  },
294
- category: ( localize(2347, "Problems")),
295
- toggled: ( (MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate())),
292
+ category: ( localize(7052, "Problems")),
293
+ toggled: ( MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate()),
296
294
  menu: {
297
295
  id: viewFilterSubmenu,
298
296
  group: '2_filter',
299
- when: ( (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID))),
297
+ when: ( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
300
298
  order: 2
301
299
  },
302
300
  viewId: Markers.MARKERS_VIEW_ID
@@ -321,22 +319,18 @@ registerAction2(class extends Action2 {
321
319
  });
322
320
  registerAction2(class extends ViewAction {
323
321
  constructor() {
324
- const when = ( (ContextKeyExpr.and(
325
- (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)),
326
- MarkersContextKeys.MarkersTreeVisibilityContextKey,
327
- (MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())
328
- )));
322
+ const when = ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)), MarkersContextKeys.MarkersTreeVisibilityContextKey, ( MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())));
329
323
  super({
330
324
  id: Markers.MARKER_COPY_ACTION_ID,
331
- title: ( localize2(2356, 'Copy')),
325
+ title: ( localize2(7061, 'Copy')),
332
326
  menu: {
333
327
  id: MenuId.ProblemsPanelContext,
334
328
  when,
335
329
  group: 'navigation'
336
330
  },
337
331
  keybinding: {
338
- weight: 200 ,
339
- primary: 2048 | 33 ,
332
+ weight: KeybindingWeight.WorkbenchContrib,
333
+ primary: KeyMod.CtrlCmd | KeyCode.KeyC,
340
334
  when
341
335
  },
342
336
  viewId: Markers.MARKERS_VIEW_ID
@@ -368,7 +362,7 @@ registerAction2(class extends ViewAction {
368
362
  constructor() {
369
363
  super({
370
364
  id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
371
- title: ( localize2(2357, 'Copy Message')),
365
+ title: ( localize2(7062, 'Copy Message')),
372
366
  menu: {
373
367
  id: MenuId.ProblemsPanelContext,
374
368
  when: MarkersContextKeys.MarkerFocusContextKey,
@@ -389,7 +383,7 @@ registerAction2(class extends ViewAction {
389
383
  constructor() {
390
384
  super({
391
385
  id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
392
- title: ( localize2(2357, 'Copy Message')),
386
+ title: ( localize2(7062, 'Copy Message')),
393
387
  menu: {
394
388
  id: MenuId.ProblemsPanelContext,
395
389
  when: MarkersContextKeys.RelatedInformationFocusContextKey,
@@ -410,11 +404,11 @@ registerAction2(class extends ViewAction {
410
404
  constructor() {
411
405
  super({
412
406
  id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
413
- title: ( localize(2358, "Focus problems view")),
407
+ title: ( localize(7063, "Focus problems view")),
414
408
  keybinding: {
415
409
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
416
- weight: 200 ,
417
- primary: 2048 | 18
410
+ weight: KeybindingWeight.WorkbenchContrib,
411
+ primary: KeyMod.CtrlCmd | KeyCode.DownArrow
418
412
  },
419
413
  viewId: Markers.MARKERS_VIEW_ID
420
414
  });
@@ -427,11 +421,11 @@ registerAction2(class extends ViewAction {
427
421
  constructor() {
428
422
  super({
429
423
  id: Markers.MARKERS_VIEW_FOCUS_FILTER,
430
- title: ( localize(2359, "Focus problems filter")),
424
+ title: ( localize(7064, "Focus problems filter")),
431
425
  keybinding: {
432
- when: ( (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID))),
433
- weight: 200 ,
434
- primary: 2048 | 36
426
+ when: ( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)),
427
+ weight: KeybindingWeight.WorkbenchContrib,
428
+ primary: KeyMod.CtrlCmd | KeyCode.KeyF
435
429
  },
436
430
  viewId: Markers.MARKERS_VIEW_ID
437
431
  });
@@ -444,11 +438,11 @@ registerAction2(class extends ViewAction {
444
438
  constructor() {
445
439
  super({
446
440
  id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
447
- title: ( localize2(2360, "Show message in multiple lines")),
448
- category: ( localize(2347, "Problems")),
441
+ title: ( localize2(7065, "Show message in multiple lines")),
442
+ category: ( localize(7052, "Problems")),
449
443
  menu: {
450
444
  id: MenuId.CommandPalette,
451
- when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
445
+ when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
452
446
  },
453
447
  viewId: Markers.MARKERS_VIEW_ID
454
448
  });
@@ -461,11 +455,11 @@ registerAction2(class extends ViewAction {
461
455
  constructor() {
462
456
  super({
463
457
  id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
464
- title: ( localize2(2361, "Show message in single line")),
465
- category: ( localize(2347, "Problems")),
458
+ title: ( localize2(7066, "Show message in single line")),
459
+ category: ( localize(7052, "Problems")),
466
460
  menu: {
467
461
  id: MenuId.CommandPalette,
468
- when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
462
+ when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
469
463
  },
470
464
  viewId: Markers.MARKERS_VIEW_ID
471
465
  });
@@ -478,12 +472,12 @@ registerAction2(class extends ViewAction {
478
472
  constructor() {
479
473
  super({
480
474
  id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
481
- title: ( localize(2362, "Clear filters text")),
482
- category: ( localize(2347, "Problems")),
475
+ title: ( localize(7067, "Clear filters text")),
476
+ category: ( localize(7052, "Problems")),
483
477
  keybinding: {
484
478
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
485
- weight: 200 ,
486
- primary: 9
479
+ weight: KeybindingWeight.WorkbenchContrib,
480
+ primary: KeyCode.Escape
487
481
  },
488
482
  viewId: Markers.MARKERS_VIEW_ID
489
483
  });
@@ -496,13 +490,10 @@ registerAction2(class extends ViewAction {
496
490
  constructor() {
497
491
  super({
498
492
  id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
499
- title: ( localize(2363, "Collapse All")),
493
+ title: ( localize(7068, "Collapse All")),
500
494
  menu: {
501
495
  id: MenuId.ViewTitle,
502
- when: ( (ContextKeyExpr.and(
503
- (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
504
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" ))
505
- ))),
496
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree)))),
506
497
  group: 'navigation',
507
498
  order: 2,
508
499
  },
@@ -537,9 +528,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
537
528
  this.markerService = markerService;
538
529
  this.statusbarService = statusbarService;
539
530
  this.configurationService = configurationService;
540
- this.markersStatusItem = this._register(this.statusbarService.addEntry(this.getMarkersItem(), 'status.problems', 0 , 50 ));
531
+ this.markersStatusItem = this._register(this.statusbarService.addEntry(this.getMarkersItem(), 'status.problems', StatusbarAlignment.LEFT, 50 ));
541
532
  const addStatusBarEntry = () => {
542
- this.markersStatusItemOff = this.statusbarService.addEntry(this.getMarkersItemTurnedOff(), 'status.problemsVisibility', 0 , 49);
533
+ this.markersStatusItemOff = this.statusbarService.addEntry(this.getMarkersItemTurnedOff(), 'status.problemsVisibility', StatusbarAlignment.LEFT, 49);
543
534
  };
544
535
  let config = this.configurationService.getValue('problems.visibility');
545
536
  if (!config) {
@@ -566,7 +557,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
566
557
  const markersStatistics = this.markerService.getStatistics();
567
558
  const tooltip = this.getMarkersTooltip(markersStatistics);
568
559
  return {
569
- name: ( localize(2364, "Problems")),
560
+ name: ( localize(7069, "Problems")),
570
561
  text: this.getMarkersText(markersStatistics),
571
562
  ariaLabel: tooltip,
572
563
  tooltip,
@@ -577,9 +568,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
577
568
  this.statusbarService.updateEntryVisibility('status.problemsVisibility', true);
578
569
  const openSettingsCommand = 'workbench.action.openSettings';
579
570
  const configureSettingsLabel = '@id:problems.visibility';
580
- const tooltip = ( localize(2365, "Problems are turned off. Click to open settings."));
571
+ const tooltip = ( localize(7070, "Problems are turned off. Click to open settings."));
581
572
  return {
582
- name: ( localize(2366, "Problems Visibility")),
573
+ name: ( localize(7071, "Problems Visibility")),
583
574
  text: '$(whole-word)',
584
575
  ariaLabel: tooltip,
585
576
  tooltip,
@@ -588,9 +579,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
588
579
  };
589
580
  }
590
581
  getMarkersTooltip(stats) {
591
- const errorTitle = (n) => ( localize(2367, "Errors: {0}", n));
592
- const warningTitle = (n) => ( localize(2368, "Warnings: {0}", n));
593
- const infoTitle = (n) => ( localize(2369, "Infos: {0}", n));
582
+ const errorTitle = (n) => ( localize(7072, "Errors: {0}", n));
583
+ const warningTitle = (n) => ( localize(7073, "Warnings: {0}", n));
584
+ const infoTitle = (n) => ( localize(7074, "Infos: {0}", n));
594
585
  const titles = [];
595
586
  if (stats.errors > 0) {
596
587
  titles.push(errorTitle(stats.errors));
@@ -602,7 +593,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
602
593
  titles.push(infoTitle(stats.infos));
603
594
  }
604
595
  if (titles.length === 0) {
605
- return ( localize(2370, "No Problems"));
596
+ return localize(7075, "No Problems");
606
597
  }
607
598
  return titles.join(', ');
608
599
  }
@@ -616,22 +607,22 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
616
607
  return problemsText.join(' ');
617
608
  }
618
609
  packNumber(n) {
619
- const manyProblems = ( localize(2371, "10K+"));
620
- return n > 9999 ? manyProblems : n > 999 ? ( (n.toString())).charAt(0) + 'K' : ( (n.toString()));
610
+ const manyProblems = ( localize(7076, "10K+"));
611
+ return n > 9999 ? manyProblems : n > 999 ? ( n.toString()).charAt(0) + 'K' : ( n.toString());
621
612
  }
622
613
  };
623
- MarkersStatusBarContributions = ( (__decorate([
624
- ( (__param(0, IMarkerService))),
625
- ( (__param(1, IStatusbarService))),
626
- ( (__param(2, IConfigurationService)))
627
- ], MarkersStatusBarContributions)));
628
- workbenchRegistry.registerWorkbenchContribution(MarkersStatusBarContributions, 3 );
614
+ MarkersStatusBarContributions = ( __decorate([
615
+ ( __param(0, IMarkerService)),
616
+ ( __param(1, IStatusbarService)),
617
+ ( __param(2, IConfigurationService))
618
+ ], MarkersStatusBarContributions));
619
+ workbenchRegistry.registerWorkbenchContribution(MarkersStatusBarContributions, LifecyclePhase.Restored);
629
620
  let ActivityUpdater = class ActivityUpdater extends Disposable {
630
621
  constructor(activityService, markerService) {
631
622
  super();
632
623
  this.activityService = activityService;
633
624
  this.markerService = markerService;
634
- this.activity = this._register(( (new MutableDisposable())));
625
+ this.activity = this._register(( new MutableDisposable()));
635
626
  this._register(this.markerService.onMarkerChanged(() => this.updateBadge()));
636
627
  this.updateBadge();
637
628
  }
@@ -639,16 +630,16 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
639
630
  const { errors, warnings, infos } = this.markerService.getStatistics();
640
631
  const total = errors + warnings + infos;
641
632
  if (total > 0) {
642
- const message = ( localize(2372, 'Total {0} Problems', total));
643
- this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( (new NumberBadge(total, () => message))) });
633
+ const message = ( localize(7077, 'Total {0} Problems', total));
634
+ this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( new NumberBadge(total, () => message)) });
644
635
  }
645
636
  else {
646
637
  this.activity.value = undefined;
647
638
  }
648
639
  }
649
640
  };
650
- ActivityUpdater = ( (__decorate([
651
- ( (__param(0, IActivityService))),
652
- ( (__param(1, IMarkerService)))
653
- ], ActivityUpdater)));
654
- workbenchRegistry.registerWorkbenchContribution(ActivityUpdater, 3 );
641
+ ActivityUpdater = ( __decorate([
642
+ ( __param(0, IActivityService)),
643
+ ( __param(1, IMarkerService))
644
+ ], ActivityUpdater));
645
+ workbenchRegistry.registerWorkbenchContribution(ActivityUpdater, LifecyclePhase.Restored);
@@ -0,0 +1,19 @@
1
+ import { MarkersFilters } from "./markersViewActions.js";
2
+ import { IView } from "vscode/vscode/vs/workbench/common/views";
3
+ import { MarkerElement, ResourceMarkers } from "./markersModel.js";
4
+ import { MarkersViewMode } from "@codingame/monaco-vscode-2448342b-297f-5823-9f41-f18eef0f6ee8-common/vscode/vs/workbench/contrib/markers/common/markers";
5
+ export interface IMarkersView extends IView {
6
+ readonly filters: MarkersFilters;
7
+ focusFilter(): void;
8
+ clearFilterText(): void;
9
+ getFilterStats(): {
10
+ total: number;
11
+ filtered: number;
12
+ };
13
+ getFocusElement(): MarkerElement | undefined;
14
+ getFocusedSelectedElements(): MarkerElement[] | null;
15
+ getAllResourceMarkers(): ResourceMarkers[];
16
+ collapseAll(): void;
17
+ setMultiline(multiline: boolean): void;
18
+ setViewMode(viewMode: MarkersViewMode): void;
19
+ }