@codingame/monaco-vscode-markers-service-override 5.2.0 → 6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-markers-service-override",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@5.2.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@6.0.0"
30
30
  }
31
31
  }
@@ -3,20 +3,23 @@ import './markersFileDecorations.js';
3
3
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
4
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
5
5
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
6
- import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
6
+ import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
7
+ import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
7
8
  import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
8
9
  import { Marker, ResourceMarkers, RelatedInformation } from './markersModel.js';
9
10
  import { MarkersView } from './markersView.js';
10
11
  import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
11
12
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
12
- import { Markers, MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
13
+ import { Markers, MarkersContextKeys, MarkersViewMode } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
13
14
  import Messages from './messages.js';
14
15
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/contributions';
16
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
15
17
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
16
18
  import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
19
+ import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
17
20
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
18
21
  import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
19
- import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
22
+ import { Extensions as Extensions$1, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
20
23
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
21
24
  import { FocusedViewContext, getVisbileViewContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
22
25
  import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
@@ -33,12 +36,12 @@ import { problemsConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common
33
36
  const _moduleId = "vs/workbench/contrib/markers/browser/markers.contribution";
34
37
  KeybindingsRegistry.registerCommandAndKeybindingRule({
35
38
  id: Markers.MARKER_OPEN_ACTION_ID,
36
- weight: 200 ,
39
+ weight: KeybindingWeight.WorkbenchContrib,
37
40
  when: ( (ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey))),
38
- primary: 3 ,
41
+ primary: KeyCode.Enter,
39
42
  mac: {
40
- primary: 3 ,
41
- secondary: [2048 | 18 ]
43
+ primary: KeyCode.Enter,
44
+ secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow]
42
45
  },
43
46
  handler: (accessor, args) => {
44
47
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
@@ -47,11 +50,11 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
47
50
  });
48
51
  KeybindingsRegistry.registerCommandAndKeybindingRule({
49
52
  id: Markers.MARKER_OPEN_SIDE_ACTION_ID,
50
- weight: 200 ,
53
+ weight: KeybindingWeight.WorkbenchContrib,
51
54
  when: ( (ContextKeyExpr.and(MarkersContextKeys.MarkerFocusContextKey))),
52
- primary: 2048 | 3 ,
55
+ primary: KeyMod.CtrlCmd | KeyCode.Enter,
53
56
  mac: {
54
- primary: 256 | 3
57
+ primary: KeyMod.WinCtrl | KeyCode.Enter
55
58
  },
56
59
  handler: (accessor, args) => {
57
60
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
@@ -60,7 +63,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
60
63
  });
61
64
  KeybindingsRegistry.registerCommandAndKeybindingRule({
62
65
  id: Markers.MARKER_SHOW_PANEL_ID,
63
- weight: 200 ,
66
+ weight: KeybindingWeight.WorkbenchContrib,
64
67
  when: undefined,
65
68
  primary: undefined,
66
69
  handler: async (accessor, args) => {
@@ -69,9 +72,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
69
72
  });
70
73
  KeybindingsRegistry.registerCommandAndKeybindingRule({
71
74
  id: Markers.MARKER_SHOW_QUICK_FIX,
72
- weight: 200 ,
75
+ weight: KeybindingWeight.WorkbenchContrib,
73
76
  when: MarkersContextKeys.MarkerFocusContextKey,
74
- primary: 2048 | 89 ,
77
+ primary: KeyMod.CtrlCmd | KeyCode.Period,
75
78
  handler: (accessor, args) => {
76
79
  const markersView = accessor.get(IViewsService).getActiveViewWithId(Markers.MARKERS_VIEW_ID);
77
80
  const focusedElement = markersView.getFocusElement();
@@ -123,7 +126,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).reg
123
126
  [Markers.MARKERS_CONTAINER_ID, { mergeViewWithContainerWhenSingleView: true }]
124
127
  ))),
125
128
  storageId: Markers.MARKERS_VIEW_STORAGE_ID,
126
- }, 1 , { doNotRegisterOpenCommand: true });
129
+ }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
127
130
  ( (Registry.as(Extensions$1.ViewsRegistry))).registerViews([{
128
131
  id: Markers.MARKERS_VIEW_ID,
129
132
  containerIcon: markersViewIcon,
@@ -134,7 +137,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).reg
134
137
  openCommandActionDescriptor: {
135
138
  id: 'workbench.actions.view.problems',
136
139
  mnemonicTitle: ( localizeWithPath(_moduleId, 1, "&&Problems")),
137
- keybindings: { primary: 2048 | 1024 | 43 },
140
+ keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM },
138
141
  order: 0,
139
142
  }
140
143
  }], VIEW_CONTAINER);
@@ -148,7 +151,7 @@ registerAction2(class extends ViewAction {
148
151
  id: MenuId.ViewTitle,
149
152
  when: ( (ContextKeyExpr.and(
150
153
  (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
151
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("table" ))
154
+ (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Table))
152
155
  ))),
153
156
  group: 'navigation',
154
157
  order: 3
@@ -158,7 +161,7 @@ registerAction2(class extends ViewAction {
158
161
  });
159
162
  }
160
163
  async runInView(serviceAccessor, view) {
161
- view.setViewMode("tree" );
164
+ view.setViewMode(MarkersViewMode.Tree);
162
165
  }
163
166
  });
164
167
  registerAction2(class extends ViewAction {
@@ -170,7 +173,7 @@ registerAction2(class extends ViewAction {
170
173
  id: MenuId.ViewTitle,
171
174
  when: ( (ContextKeyExpr.and(
172
175
  (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
173
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" ))
176
+ (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree))
174
177
  ))),
175
178
  group: 'navigation',
176
179
  order: 3
@@ -180,7 +183,7 @@ registerAction2(class extends ViewAction {
180
183
  });
181
184
  }
182
185
  async runInView(serviceAccessor, view) {
183
- view.setViewMode("table" );
186
+ view.setViewMode(MarkersViewMode.Table);
184
187
  }
185
188
  });
186
189
  registerAction2(class extends ViewAction {
@@ -312,8 +315,8 @@ registerAction2(class extends ViewAction {
312
315
  group: 'navigation'
313
316
  },
314
317
  keybinding: {
315
- weight: 200 ,
316
- primary: 2048 | 33 ,
318
+ weight: KeybindingWeight.WorkbenchContrib,
319
+ primary: KeyMod.CtrlCmd | KeyCode.KeyC,
317
320
  when
318
321
  },
319
322
  viewId: Markers.MARKERS_VIEW_ID
@@ -390,8 +393,8 @@ registerAction2(class extends ViewAction {
390
393
  title: ( localizeWithPath(_moduleId, 12, "Focus problems view")),
391
394
  keybinding: {
392
395
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
393
- weight: 200 ,
394
- primary: 2048 | 18
396
+ weight: KeybindingWeight.WorkbenchContrib,
397
+ primary: KeyMod.CtrlCmd | KeyCode.DownArrow
395
398
  },
396
399
  viewId: Markers.MARKERS_VIEW_ID
397
400
  });
@@ -407,8 +410,8 @@ registerAction2(class extends ViewAction {
407
410
  title: ( localizeWithPath(_moduleId, 13, "Focus problems filter")),
408
411
  keybinding: {
409
412
  when: ( (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID))),
410
- weight: 200 ,
411
- primary: 2048 | 36
413
+ weight: KeybindingWeight.WorkbenchContrib,
414
+ primary: KeyMod.CtrlCmd | KeyCode.KeyF
412
415
  },
413
416
  viewId: Markers.MARKERS_VIEW_ID
414
417
  });
@@ -459,8 +462,8 @@ registerAction2(class extends ViewAction {
459
462
  category: ( localizeWithPath(_moduleId, 5, "Problems")),
460
463
  keybinding: {
461
464
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
462
- weight: 200 ,
463
- primary: 9
465
+ weight: KeybindingWeight.WorkbenchContrib,
466
+ primary: KeyCode.Escape
464
467
  },
465
468
  viewId: Markers.MARKERS_VIEW_ID
466
469
  });
@@ -478,7 +481,7 @@ registerAction2(class extends ViewAction {
478
481
  id: MenuId.ViewTitle,
479
482
  when: ( (ContextKeyExpr.and(
480
483
  (ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)),
481
- (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" ))
484
+ (MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree))
482
485
  ))),
483
486
  group: 'navigation',
484
487
  order: 2,
@@ -514,9 +517,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
514
517
  this.markerService = markerService;
515
518
  this.statusbarService = statusbarService;
516
519
  this.configurationService = configurationService;
517
- this.markersStatusItem = this._register(this.statusbarService.addEntry(this.getMarkersItem(), 'status.problems', 0 , 50 ));
520
+ this.markersStatusItem = this._register(this.statusbarService.addEntry(this.getMarkersItem(), 'status.problems', StatusbarAlignment.LEFT, 50 ));
518
521
  const addStatusBarEntry = () => {
519
- this.markersStatusItemOff = this.statusbarService.addEntry(this.getMarkersItemTurnedOff(), 'status.problemsVisibility', 0 , 49);
522
+ this.markersStatusItemOff = this.statusbarService.addEntry(this.getMarkersItemTurnedOff(), 'status.problemsVisibility', StatusbarAlignment.LEFT, 49);
520
523
  };
521
524
  let config = this.configurationService.getValue('problems.visibility');
522
525
  if (!config) {
@@ -602,7 +605,7 @@ MarkersStatusBarContributions = ( (__decorate([
602
605
  ( (__param(1, IStatusbarService))),
603
606
  ( (__param(2, IConfigurationService)))
604
607
  ], MarkersStatusBarContributions)));
605
- workbenchRegistry.registerWorkbenchContribution(MarkersStatusBarContributions, 3 );
608
+ workbenchRegistry.registerWorkbenchContribution(MarkersStatusBarContributions, LifecyclePhase.Restored);
606
609
  let ActivityUpdater = class ActivityUpdater extends Disposable {
607
610
  constructor(activityService, markerService) {
608
611
  super();
@@ -628,4 +631,4 @@ ActivityUpdater = ( (__decorate([
628
631
  ( (__param(0, IActivityService))),
629
632
  ( (__param(1, IMarkerService)))
630
633
  ], ActivityUpdater)));
631
- workbenchRegistry.registerWorkbenchContribution(ActivityUpdater, 3 );
634
+ workbenchRegistry.registerWorkbenchContribution(ActivityUpdater, LifecyclePhase.Restored);
@@ -19,6 +19,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
19
19
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
20
20
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
21
21
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
22
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
22
23
 
23
24
  const _moduleId = "vs/workbench/contrib/markers/browser/markersFileDecorations";
24
25
  class MarkersDecorationsProvider {
@@ -114,4 +115,4 @@ MarkersFileDecorations = ( (__decorate([
114
115
  }
115
116
  });
116
117
  ( (Registry.as(Extensions$1.Workbench)))
117
- .registerWorkbenchContribution(MarkersFileDecorations, 3 );
118
+ .registerWorkbenchContribution(MarkersFileDecorations, LifecyclePhase.Restored);
@@ -1,7 +1,7 @@
1
1
  import { extUri, basename } from 'vscode/vscode/vs/base/common/resources';
2
2
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
3
3
  import { MarkerSeverity, IMarkerData } from 'vscode/vscode/vs/platform/markers/common/markers';
4
- import { flatten, isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
4
+ import { isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
5
5
  import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
6
6
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
7
7
  import { Hasher } from 'vscode/vscode/vs/base/common/hash';
@@ -34,7 +34,7 @@ class ResourceMarkers {
34
34
  }
35
35
  get markers() {
36
36
  if (!this._cachedMarkers) {
37
- this._cachedMarkers = flatten([...( this._markersMap.values())]).sort(ResourceMarkers._compareMarkers);
37
+ this._cachedMarkers = [...( this._markersMap.values())].flat().sort(ResourceMarkers._compareMarkers);
38
38
  }
39
39
  return this._cachedMarkers;
40
40
  }
@@ -13,6 +13,7 @@ import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar'
13
13
  import { QuickFixAction, QuickFixActionViewItem } from './markersViewActions.js';
14
14
  import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
15
15
  import { basename, isEqual } from 'vscode/vscode/vs/base/common/resources';
16
+ import { TreeVisibility } from 'vscode/vscode/vs/base/browser/ui/tree/tree';
16
17
  import { FilterOptions } from './markersFilterOptions.js';
17
18
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
18
19
  import { isUndefinedOrNull } from 'vscode/vscode/vs/base/common/types';
@@ -26,6 +27,7 @@ import { CodeActionTriggerSource, CodeActionKind } from 'vscode/vscode/vs/editor
26
27
  import { ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
27
28
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
28
29
  import { SeverityIcon } from 'vscode/vscode/vs/platform/severityIcon/browser/severityIcon';
30
+ import { CodeActionTriggerType } from 'vscode/vscode/vs/editor/common/languages';
29
31
  import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
30
32
  import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
31
33
  import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
@@ -34,7 +36,7 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
34
36
  import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
35
37
  import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
36
38
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
37
- import { MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
39
+ import { MarkersViewMode, MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
38
40
  import { unsupportedSchemas } from 'vscode/vscode/vs/platform/markers/common/markerService';
39
41
  import { defaultCountBadgeStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
40
42
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
@@ -66,6 +68,12 @@ let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvide
66
68
  MarkersWidgetAccessibilityProvider = ( (__decorate([
67
69
  ( (__param(0, ILabelService)))
68
70
  ], MarkersWidgetAccessibilityProvider)));
71
+ var TemplateId;
72
+ ( ((function(TemplateId) {
73
+ TemplateId["ResourceMarkers"] = "rm";
74
+ TemplateId["Marker"] = "m";
75
+ TemplateId["RelatedInformation"] = "ri";
76
+ })(TemplateId || (TemplateId = {}))));
69
77
  class VirtualDelegate {
70
78
  static { this.LINE_HEIGHT = 22; }
71
79
  constructor(markersViewState) {
@@ -81,22 +89,28 @@ class VirtualDelegate {
81
89
  }
82
90
  getTemplateId(element) {
83
91
  if (element instanceof ResourceMarkers) {
84
- return "rm" ;
92
+ return TemplateId.ResourceMarkers;
85
93
  }
86
94
  else if (element instanceof Marker) {
87
- return "m" ;
95
+ return TemplateId.Marker;
88
96
  }
89
97
  else {
90
- return "ri" ;
98
+ return TemplateId.RelatedInformation;
91
99
  }
92
100
  }
93
101
  }
102
+ var FilterDataType;
103
+ ( ((function(FilterDataType) {
104
+ FilterDataType[FilterDataType["ResourceMarkers"] = 0] = "ResourceMarkers";
105
+ FilterDataType[FilterDataType["Marker"] = 1] = "Marker";
106
+ FilterDataType[FilterDataType["RelatedInformation"] = 2] = "RelatedInformation";
107
+ })(FilterDataType || (FilterDataType = {}))));
94
108
  class ResourceMarkersRenderer {
95
109
  constructor(labels, onDidChangeRenderNodeCount) {
96
110
  this.labels = labels;
97
111
  this.renderedNodes = ( (new Map()));
98
112
  this.disposables = ( (new DisposableStore()));
99
- this.templateId = "rm" ;
113
+ this.templateId = TemplateId.ResourceMarkers;
100
114
  onDidChangeRenderNodeCount(this.onDidChangeRenderNodeCount, this, this.disposables);
101
115
  }
102
116
  renderTemplate(container) {
@@ -150,7 +164,7 @@ let MarkerRenderer = class MarkerRenderer {
150
164
  this.hoverService = hoverService;
151
165
  this.instantiationService = instantiationService;
152
166
  this.openerService = openerService;
153
- this.templateId = "m" ;
167
+ this.templateId = TemplateId.Marker;
154
168
  }
155
169
  renderTemplate(container) {
156
170
  const data = Object.create(null);
@@ -323,7 +337,7 @@ class MarkerWidget extends Disposable {
323
337
  let RelatedInformationRenderer = class RelatedInformationRenderer {
324
338
  constructor(labelService) {
325
339
  this.labelService = labelService;
326
- this.templateId = "ri" ;
340
+ this.templateId = TemplateId.RelatedInformation;
327
341
  }
328
342
  renderTemplate(container) {
329
343
  const data = Object.create(null);
@@ -382,10 +396,10 @@ class Filter {
382
396
  if (this.options.textFilter.text && !this.options.textFilter.negate) {
383
397
  const uriMatches = FilterOptions._filter(this.options.textFilter.text, basename(resourceMarkers.resource));
384
398
  if (uriMatches) {
385
- return { visibility: true, data: { type: 0 , uriMatches: uriMatches || [] } };
399
+ return { visibility: true, data: { type: FilterDataType.ResourceMarkers, uriMatches: uriMatches || [] } };
386
400
  }
387
401
  }
388
- return 2 ;
402
+ return TreeVisibility.Recurse;
389
403
  }
390
404
  filterMarker(marker, parentVisibility) {
391
405
  const matchesSeverity = this.options.showErrors && MarkerSeverity.Error === marker.marker.severity ||
@@ -406,12 +420,12 @@ class Filter {
406
420
  const codeMatches = marker.marker.code ? FilterOptions._filter(this.options.textFilter.text, typeof marker.marker.code === 'string' ? marker.marker.code : marker.marker.code.value) : undefined;
407
421
  const matched = sourceMatches || codeMatches || ( (lineMatches.some(lineMatch => lineMatch.length > 0)));
408
422
  if (matched && !this.options.textFilter.negate) {
409
- return { visibility: true, data: { type: 1 , lineMatches, sourceMatches: sourceMatches || [], codeMatches: codeMatches || [] } };
423
+ return { visibility: true, data: { type: FilterDataType.Marker, lineMatches, sourceMatches: sourceMatches || [], codeMatches: codeMatches || [] } };
410
424
  }
411
- if (matched && this.options.textFilter.negate && parentVisibility === 2 ) {
425
+ if (matched && this.options.textFilter.negate && parentVisibility === TreeVisibility.Recurse) {
412
426
  return false;
413
427
  }
414
- if (!matched && this.options.textFilter.negate && parentVisibility === 2 ) {
428
+ if (!matched && this.options.textFilter.negate && parentVisibility === TreeVisibility.Recurse) {
415
429
  return true;
416
430
  }
417
431
  return parentVisibility;
@@ -424,12 +438,12 @@ class Filter {
424
438
  const messageMatches = FilterOptions._messageFilter(this.options.textFilter.text, basename$1(relatedInformation.raw.message));
425
439
  const matched = uriMatches || messageMatches;
426
440
  if (matched && !this.options.textFilter.negate) {
427
- return { visibility: true, data: { type: 2 , uriMatches: uriMatches || [], messageMatches: messageMatches || [] } };
441
+ return { visibility: true, data: { type: FilterDataType.RelatedInformation, uriMatches: uriMatches || [], messageMatches: messageMatches || [] } };
428
442
  }
429
- if (matched && this.options.textFilter.negate && parentVisibility === 2 ) {
443
+ if (matched && this.options.textFilter.negate && parentVisibility === TreeVisibility.Recurse) {
430
444
  return false;
431
445
  }
432
- if (!matched && this.options.textFilter.negate && parentVisibility === 2 ) {
446
+ if (!matched && this.options.textFilter.negate && parentVisibility === TreeVisibility.Recurse) {
433
447
  return true;
434
448
  }
435
449
  return parentVisibility;
@@ -496,7 +510,7 @@ let MarkerViewModel = class MarkerViewModel extends Disposable {
496
510
  this.marker.range.endLineNumber,
497
511
  this.marker.range.endColumn
498
512
  ))), {
499
- type: 1 , triggerAction: CodeActionTriggerSource.ProblemsView, filter: { include: CodeActionKind.QuickFix }
513
+ type: CodeActionTriggerType.Invoke, triggerAction: CodeActionTriggerSource.ProblemsView, filter: { include: CodeActionKind.QuickFix }
500
514
  }, Progress.None, cancellationToken).then(actions => {
501
515
  return this._register(actions);
502
516
  });
@@ -564,7 +578,7 @@ MarkerViewModel = ( (__decorate([
564
578
  ( (__param(4, ILanguageFeaturesService)))
565
579
  ], MarkerViewModel)));
566
580
  let MarkersViewModel = class MarkersViewModel extends Disposable {
567
- constructor(multiline = true, viewMode = "tree" , contextKeyService, instantiationService) {
581
+ constructor(multiline = true, viewMode = MarkersViewMode.Tree, contextKeyService, instantiationService) {
568
582
  super();
569
583
  this.contextKeyService = contextKeyService;
570
584
  this.instantiationService = instantiationService;
@@ -578,7 +592,7 @@ let MarkersViewModel = class MarkersViewModel extends Disposable {
578
592
  this.hoveredMarker = null;
579
593
  this.hoverDelayer = ( (new Delayer(300)));
580
594
  this._multiline = true;
581
- this._viewMode = "tree" ;
595
+ this._viewMode = MarkersViewMode.Tree;
582
596
  this._multiline = multiline;
583
597
  this._viewMode = viewMode;
584
598
  this.viewModeContextKey = MarkersContextKeys.MarkersViewModeContextKey.bindTo(this.contextKeyService);
@@ -12,6 +12,7 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
12
12
  import Messages from './messages.js';
13
13
  import { RangeHighlightDecorations } from 'vscode/vscode/vs/workbench/browser/codeeditor';
14
14
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
15
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
15
16
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
16
17
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
17
18
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
@@ -31,6 +32,7 @@ import { ResourceLabels } from 'vscode/vscode/vs/workbench/browser/labels';
31
32
  import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
32
33
  import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
33
34
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
35
+ import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
34
36
  import { FilterViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
35
37
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
36
38
  import { withSelection } from 'vscode/vscode/vs/platform/opener/common/opener';
@@ -43,9 +45,10 @@ import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
43
45
  import { EditorResourceAccessor, SideBySideEditor } from 'vscode/vscode/vs/workbench/common/editor';
44
46
  import { ResourceListDnDHandler } from 'vscode/vscode/vs/workbench/browser/dnd';
45
47
  import { MarkersTable } from './markersTable.js';
46
- import { Markers, MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
48
+ import { Markers, MarkersContextKeys, MarkersViewMode } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
47
49
  import { registerNavigableContainer } from 'vscode/vscode/vs/workbench/browser/actions/widgetNavigationCommands';
48
50
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
51
+ import { ResultKind } from 'vscode/vscode/vs/platform/keybinding/common/keybindingResolver';
49
52
 
50
53
  const _moduleId = "vs/workbench/contrib/markers/browser/markersView";
51
54
  function createResourceMarkersIterator(resourceMarkers) {
@@ -60,7 +63,7 @@ function createResourceMarkersIterator(resourceMarkers) {
60
63
  let MarkersView = class MarkersView extends FilterViewPane {
61
64
  constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService, hoverService) {
62
65
  const memento = ( (new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService)));
63
- const panelState = memento.getMemento(1 , 1 );
66
+ const panelState = memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
64
67
  super({
65
68
  ...options,
66
69
  filterOptions: {
@@ -135,7 +138,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
135
138
  return;
136
139
  }
137
140
  const result = this.keybindingService.softDispatch(event, event.target);
138
- if (result.kind === 1 || result.kind === 2 ) {
141
+ if (result.kind === ResultKind.MoreChordsNeeded || result.kind === ResultKind.KbFound) {
139
142
  return;
140
143
  }
141
144
  this.focusFilter();
@@ -275,11 +278,11 @@ let MarkersView = class MarkersView extends FilterViewPane {
275
278
  getDefaultViewMode() {
276
279
  switch (this.configurationService.getValue('problems.defaultViewMode')) {
277
280
  case 'table':
278
- return "table" ;
281
+ return MarkersViewMode.Table;
279
282
  case 'tree':
280
- return "tree" ;
283
+ return MarkersViewMode.Tree;
281
284
  default:
282
- return "tree" ;
285
+ return MarkersViewMode.Tree;
283
286
  }
284
287
  }
285
288
  getFilesExcludeExpressions() {
@@ -318,7 +321,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
318
321
  this.ariaLabelElement.setAttribute('id', 'markers-panel-arialabel');
319
322
  }
320
323
  createWidget(parent) {
321
- this.widget = this.markersViewModel.viewMode === "table" ? this.createTable(parent) : this.createTree(parent);
324
+ this.widget = this.markersViewModel.viewMode === MarkersViewMode.Table ? this.createTable(parent) : this.createTree(parent);
322
325
  this.widgetDisposables.add(this.widget);
323
326
  const markerFocusContextKey = MarkersContextKeys.MarkerFocusContextKey.bindTo(this.widget.contextKeyService);
324
327
  const relatedInformationFocusContextKey = MarkersContextKeys.RelatedInformationFocusContextKey.bindTo(this.widget.contextKeyService);
@@ -584,7 +587,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
584
587
  span2.textContent = '.';
585
588
  addStandardDisposableListener(link, EventType.CLICK, () => this.clearFilters());
586
589
  addStandardDisposableListener(link, EventType.KEY_DOWN, (e) => {
587
- if (e.equals(3 ) || e.equals(10 )) {
590
+ if (e.equals(KeyCode.Enter) || e.equals(KeyCode.Space)) {
588
591
  this.clearFilters();
589
592
  e.stopPropagation();
590
593
  }