@codingame/monaco-vscode-markers-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-markers-service-override",
|
|
3
|
-
"version": "2.0
|
|
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
|
|
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
|
}
|
|
@@ -3,7 +3,7 @@ import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/cont
|
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
4
4
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
5
5
|
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
6
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
7
7
|
import { Marker, ResourceMarkers, RelatedInformation } from './markersModel.js';
|
|
8
8
|
import { MarkersView } from './markersView.js';
|
|
9
9
|
import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
@@ -15,7 +15,8 @@ import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/cl
|
|
|
15
15
|
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
16
16
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
17
17
|
import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
18
|
-
import {
|
|
18
|
+
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
19
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
19
20
|
import { FocusedViewContext, getVisbileViewContextKey } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
20
21
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
21
22
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
@@ -25,6 +26,7 @@ import { ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewP
|
|
|
25
26
|
import { NumberBadge, IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
26
27
|
import { viewFilterSubmenu } from 'vscode/vscode/vs/workbench/browser/parts/views/viewFilter';
|
|
27
28
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
29
|
+
import { problemsConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
28
30
|
|
|
29
31
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
30
32
|
id: Markers.MARKER_OPEN_ACTION_ID,
|
|
@@ -76,10 +78,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
76
78
|
}
|
|
77
79
|
});
|
|
78
80
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
79
|
-
|
|
80
|
-
'order': 101,
|
|
81
|
-
'title': Messages.PROBLEMS_PANEL_CONFIGURATION_TITLE,
|
|
82
|
-
'type': 'object',
|
|
81
|
+
...problemsConfigurationNodeBase,
|
|
83
82
|
'properties': {
|
|
84
83
|
'problems.autoReveal': {
|
|
85
84
|
'description': Messages.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL,
|
|
@@ -107,16 +106,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
107
106
|
Messages.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION,
|
|
108
107
|
],
|
|
109
108
|
},
|
|
110
|
-
'problems.visibility': {
|
|
111
|
-
type: 'boolean',
|
|
112
|
-
default: true,
|
|
113
|
-
tags: ['experimental'],
|
|
114
|
-
description: ( localizeWithPath(
|
|
115
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
116
|
-
'problems.visibility',
|
|
117
|
-
"Controls whether the problems are visible throughout the editor and workbench."
|
|
118
|
-
)),
|
|
119
|
-
}
|
|
120
109
|
}
|
|
121
110
|
});
|
|
122
111
|
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localizeWithPath(
|
|
@@ -207,22 +196,15 @@ registerAction2(class extends ViewAction {
|
|
|
207
196
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
208
197
|
title: ( localizeWithPath(
|
|
209
198
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
210
|
-
'
|
|
211
|
-
"
|
|
199
|
+
'show errors',
|
|
200
|
+
"Show Errors"
|
|
212
201
|
)),
|
|
213
202
|
category: ( localizeWithPath(
|
|
214
203
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
215
204
|
'problems',
|
|
216
205
|
"Problems"
|
|
217
206
|
)),
|
|
218
|
-
toggled:
|
|
219
|
-
condition: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
220
|
-
title: ( localizeWithPath(
|
|
221
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
222
|
-
'errors',
|
|
223
|
-
"Show Errors"
|
|
224
|
-
))
|
|
225
|
-
},
|
|
207
|
+
toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
226
208
|
menu: {
|
|
227
209
|
id: viewFilterSubmenu,
|
|
228
210
|
group: '1_filter',
|
|
@@ -242,22 +224,15 @@ registerAction2(class extends ViewAction {
|
|
|
242
224
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
243
225
|
title: ( localizeWithPath(
|
|
244
226
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
245
|
-
'
|
|
246
|
-
"
|
|
227
|
+
'show warnings',
|
|
228
|
+
"Show Warnings"
|
|
247
229
|
)),
|
|
248
230
|
category: ( localizeWithPath(
|
|
249
231
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
250
232
|
'problems',
|
|
251
233
|
"Problems"
|
|
252
234
|
)),
|
|
253
|
-
toggled:
|
|
254
|
-
condition: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
255
|
-
title: ( localizeWithPath(
|
|
256
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
257
|
-
'warnings',
|
|
258
|
-
"Show Warnings"
|
|
259
|
-
))
|
|
260
|
-
},
|
|
235
|
+
toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
261
236
|
menu: {
|
|
262
237
|
id: viewFilterSubmenu,
|
|
263
238
|
group: '1_filter',
|
|
@@ -277,22 +252,15 @@ registerAction2(class extends ViewAction {
|
|
|
277
252
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
278
253
|
title: ( localizeWithPath(
|
|
279
254
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
280
|
-
'
|
|
281
|
-
"
|
|
255
|
+
'show infos',
|
|
256
|
+
"Show Infos"
|
|
282
257
|
)),
|
|
283
258
|
category: ( localizeWithPath(
|
|
284
259
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
285
260
|
'problems',
|
|
286
261
|
"Problems"
|
|
287
262
|
)),
|
|
288
|
-
toggled:
|
|
289
|
-
condition: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
290
|
-
title: ( localizeWithPath(
|
|
291
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
292
|
-
'Infos',
|
|
293
|
-
"Show Infos"
|
|
294
|
-
))
|
|
295
|
-
},
|
|
263
|
+
toggled: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
296
264
|
menu: {
|
|
297
265
|
id: viewFilterSubmenu,
|
|
298
266
|
group: '1_filter',
|
|
@@ -312,22 +280,15 @@ registerAction2(class extends ViewAction {
|
|
|
312
280
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
313
281
|
title: ( localizeWithPath(
|
|
314
282
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
315
|
-
'
|
|
316
|
-
"
|
|
283
|
+
'show active file',
|
|
284
|
+
"Show Active File Only"
|
|
317
285
|
)),
|
|
318
286
|
category: ( localizeWithPath(
|
|
319
287
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
320
288
|
'problems',
|
|
321
289
|
"Problems"
|
|
322
290
|
)),
|
|
323
|
-
toggled:
|
|
324
|
-
condition: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
325
|
-
title: ( localizeWithPath(
|
|
326
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
327
|
-
'Active File',
|
|
328
|
-
"Show Active File Only"
|
|
329
|
-
))
|
|
330
|
-
},
|
|
291
|
+
toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
331
292
|
menu: {
|
|
332
293
|
id: viewFilterSubmenu,
|
|
333
294
|
group: '2_filter',
|
|
@@ -347,22 +308,15 @@ registerAction2(class extends ViewAction {
|
|
|
347
308
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
348
309
|
title: ( localizeWithPath(
|
|
349
310
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
350
|
-
'
|
|
351
|
-
"
|
|
311
|
+
'show excluded files',
|
|
312
|
+
"Show Excluded Files"
|
|
352
313
|
)),
|
|
353
314
|
category: ( localizeWithPath(
|
|
354
315
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
355
316
|
'problems',
|
|
356
317
|
"Problems"
|
|
357
318
|
)),
|
|
358
|
-
toggled:
|
|
359
|
-
condition: MarkersContextKeys.ShowExcludedFilesFilterContextKey,
|
|
360
|
-
title: ( localizeWithPath(
|
|
361
|
-
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
362
|
-
'Excluded Files',
|
|
363
|
-
"Hide Excluded Files"
|
|
364
|
-
))
|
|
365
|
-
},
|
|
319
|
+
toggled: ( MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate()),
|
|
366
320
|
menu: {
|
|
367
321
|
id: viewFilterSubmenu,
|
|
368
322
|
group: '2_filter',
|
|
@@ -394,11 +348,11 @@ registerAction2(class extends ViewAction {
|
|
|
394
348
|
const when = ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)), MarkersContextKeys.MarkersTreeVisibilityContextKey, ( MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())));
|
|
395
349
|
super({
|
|
396
350
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
397
|
-
title:
|
|
351
|
+
title: ( localize2WithPath(
|
|
398
352
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
399
353
|
'copyMarker',
|
|
400
|
-
|
|
401
|
-
)),
|
|
354
|
+
'Copy'
|
|
355
|
+
)),
|
|
402
356
|
menu: {
|
|
403
357
|
id: MenuId.ProblemsPanelContext,
|
|
404
358
|
when,
|
|
@@ -438,11 +392,11 @@ registerAction2(class extends ViewAction {
|
|
|
438
392
|
constructor() {
|
|
439
393
|
super({
|
|
440
394
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
441
|
-
title:
|
|
395
|
+
title: ( localize2WithPath(
|
|
442
396
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
443
397
|
'copyMessage',
|
|
444
|
-
|
|
445
|
-
)),
|
|
398
|
+
'Copy Message'
|
|
399
|
+
)),
|
|
446
400
|
menu: {
|
|
447
401
|
id: MenuId.ProblemsPanelContext,
|
|
448
402
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -463,11 +417,11 @@ registerAction2(class extends ViewAction {
|
|
|
463
417
|
constructor() {
|
|
464
418
|
super({
|
|
465
419
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
466
|
-
title:
|
|
420
|
+
title: ( localize2WithPath(
|
|
467
421
|
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
468
422
|
'copyMessage',
|
|
469
|
-
|
|
470
|
-
)),
|
|
423
|
+
'Copy Message'
|
|
424
|
+
)),
|
|
471
425
|
menu: {
|
|
472
426
|
id: MenuId.ProblemsPanelContext,
|
|
473
427
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -51,7 +51,8 @@ function createResourceMarkersIterator(resourceMarkers) {
|
|
|
51
51
|
}
|
|
52
52
|
let MarkersView = class MarkersView extends FilterViewPane {
|
|
53
53
|
constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService) {
|
|
54
|
-
const
|
|
54
|
+
const memento = ( new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService));
|
|
55
|
+
const panelState = memento.getMemento(1 , 1 );
|
|
55
56
|
super({
|
|
56
57
|
...options,
|
|
57
58
|
filterOptions: {
|
|
@@ -75,6 +76,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
75
76
|
this.cachedFilterStats = undefined;
|
|
76
77
|
this.currentResourceGotAddedToMarkersData = false;
|
|
77
78
|
this.onDidChangeVisibility = this.onDidChangeBodyVisibility;
|
|
79
|
+
this.memento = memento;
|
|
78
80
|
this.panelState = panelState;
|
|
79
81
|
this.markersModel = this._register(instantiationService.createInstance(MarkersModel));
|
|
80
82
|
this.markersViewModel = this._register(instantiationService.createInstance(MarkersViewModel, this.panelState['multiline'], this.panelState['viewMode'] ?? this.getDefaultViewMode()));
|
|
@@ -732,6 +734,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
732
734
|
this.panelState['activeFile'] = this.filters.activeFile;
|
|
733
735
|
this.panelState['multiline'] = this.markersViewModel.multiline;
|
|
734
736
|
this.panelState['viewMode'] = this.markersViewModel.viewMode;
|
|
737
|
+
this.memento.saveMemento();
|
|
735
738
|
super.saveState();
|
|
736
739
|
}
|
|
737
740
|
dispose() {
|
|
@@ -850,8 +853,10 @@ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
|
850
853
|
}
|
|
851
854
|
update(resourceMarkers) {
|
|
852
855
|
for (const resourceMarker of resourceMarkers) {
|
|
853
|
-
this.
|
|
854
|
-
|
|
856
|
+
if (this.hasElement(resourceMarker)) {
|
|
857
|
+
this.setChildren(resourceMarker, createResourceMarkersIterator(resourceMarker));
|
|
858
|
+
this.rerender(resourceMarker);
|
|
859
|
+
}
|
|
855
860
|
}
|
|
856
861
|
}
|
|
857
862
|
updateMarker(marker) {
|