@codingame/monaco-vscode-views-service-override 1.85.2 → 1.85.3
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 +11 -11
- package/views.js +0 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -371
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -277
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -367
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -12
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -307
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -68
- package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -37
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import './documentSymbolsTree.css.js';
|
|
3
|
-
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
4
|
-
import { HighlightedLabel } from 'monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js';
|
|
5
|
-
import { createMatches } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
6
|
-
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
7
|
-
import { symbolKindNames, SymbolKinds, getAriaLabelForSymbol } from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
8
|
-
import { OutlineModel, OutlineElement, OutlineGroup } from 'monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js';
|
|
9
|
-
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
10
|
-
import { IconLabel } from 'monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js';
|
|
11
|
-
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
12
|
-
import { MarkerSeverity } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
13
|
-
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
14
|
-
import { listErrorForeground, listWarningForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
15
|
-
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
16
|
-
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
17
|
-
import { mainWindow } from 'monaco-editor/esm/vs/base/browser/window.js';
|
|
18
|
-
|
|
19
|
-
var DocumentSymbolFilter_1;
|
|
20
|
-
class DocumentSymbolNavigationLabelProvider {
|
|
21
|
-
getKeyboardNavigationLabel(element) {
|
|
22
|
-
if (element instanceof OutlineGroup) {
|
|
23
|
-
return element.label;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return element.symbol.name;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
class DocumentSymbolAccessibilityProvider {
|
|
31
|
-
constructor(_ariaLabel) {
|
|
32
|
-
this._ariaLabel = _ariaLabel;
|
|
33
|
-
}
|
|
34
|
-
getWidgetAriaLabel() {
|
|
35
|
-
return this._ariaLabel;
|
|
36
|
-
}
|
|
37
|
-
getAriaLabel(element) {
|
|
38
|
-
if (element instanceof OutlineGroup) {
|
|
39
|
-
return element.label;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return getAriaLabelForSymbol(element.symbol.name, element.symbol.kind);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
class DocumentSymbolIdentityProvider {
|
|
47
|
-
getId(element) {
|
|
48
|
-
return element.id;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class DocumentSymbolGroupTemplate {
|
|
52
|
-
static { this.id = 'DocumentSymbolGroupTemplate'; }
|
|
53
|
-
constructor(labelContainer, label) {
|
|
54
|
-
this.labelContainer = labelContainer;
|
|
55
|
-
this.label = label;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
class DocumentSymbolTemplate {
|
|
59
|
-
static { this.id = 'DocumentSymbolTemplate'; }
|
|
60
|
-
constructor(container, iconLabel, iconClass, decoration) {
|
|
61
|
-
this.container = container;
|
|
62
|
-
this.iconLabel = iconLabel;
|
|
63
|
-
this.iconClass = iconClass;
|
|
64
|
-
this.decoration = decoration;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
class DocumentSymbolVirtualDelegate {
|
|
68
|
-
getHeight(_element) {
|
|
69
|
-
return 22;
|
|
70
|
-
}
|
|
71
|
-
getTemplateId(element) {
|
|
72
|
-
return element instanceof OutlineGroup
|
|
73
|
-
? DocumentSymbolGroupTemplate.id
|
|
74
|
-
: DocumentSymbolTemplate.id;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
class DocumentSymbolGroupRenderer {
|
|
78
|
-
constructor() {
|
|
79
|
-
this.templateId = DocumentSymbolGroupTemplate.id;
|
|
80
|
-
}
|
|
81
|
-
renderTemplate(container) {
|
|
82
|
-
const labelContainer = dom.$('.outline-element-label');
|
|
83
|
-
container.classList.add('outline-element');
|
|
84
|
-
dom.append(container, labelContainer);
|
|
85
|
-
return ( new DocumentSymbolGroupTemplate(labelContainer, ( new HighlightedLabel(labelContainer))));
|
|
86
|
-
}
|
|
87
|
-
renderElement(node, _index, template) {
|
|
88
|
-
template.label.set(node.element.label, createMatches(node.filterData));
|
|
89
|
-
}
|
|
90
|
-
disposeTemplate(_template) {
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
let DocumentSymbolRenderer = class DocumentSymbolRenderer {
|
|
94
|
-
constructor(_renderMarker, _configurationService, _themeService) {
|
|
95
|
-
this._renderMarker = _renderMarker;
|
|
96
|
-
this._configurationService = _configurationService;
|
|
97
|
-
this._themeService = _themeService;
|
|
98
|
-
this.templateId = DocumentSymbolTemplate.id;
|
|
99
|
-
}
|
|
100
|
-
renderTemplate(container) {
|
|
101
|
-
container.classList.add('outline-element');
|
|
102
|
-
const iconLabel = ( new IconLabel(container, { supportHighlights: true }));
|
|
103
|
-
const iconClass = dom.$('.outline-element-icon');
|
|
104
|
-
const decoration = dom.$('.outline-element-decoration');
|
|
105
|
-
container.prepend(iconClass);
|
|
106
|
-
container.appendChild(decoration);
|
|
107
|
-
return ( new DocumentSymbolTemplate(container, iconLabel, iconClass, decoration));
|
|
108
|
-
}
|
|
109
|
-
renderElement(node, _index, template) {
|
|
110
|
-
const { element } = node;
|
|
111
|
-
const extraClasses = ['nowrap'];
|
|
112
|
-
const options = {
|
|
113
|
-
matches: createMatches(node.filterData),
|
|
114
|
-
labelEscapeNewLines: true,
|
|
115
|
-
extraClasses,
|
|
116
|
-
title: ( localizeWithPath(
|
|
117
|
-
'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
|
|
118
|
-
'title.template',
|
|
119
|
-
"{0} ({1})",
|
|
120
|
-
element.symbol.name,
|
|
121
|
-
symbolKindNames[element.symbol.kind]
|
|
122
|
-
))
|
|
123
|
-
};
|
|
124
|
-
if (this._configurationService.getValue("outline.icons" )) {
|
|
125
|
-
template.iconClass.className = '';
|
|
126
|
-
template.iconClass.classList.add('outline-element-icon', 'inline', ...ThemeIcon.asClassNameArray(SymbolKinds.toIcon(element.symbol.kind)));
|
|
127
|
-
}
|
|
128
|
-
if (element.symbol.tags.indexOf(1 ) >= 0) {
|
|
129
|
-
extraClasses.push(`deprecated`);
|
|
130
|
-
options.matches = [];
|
|
131
|
-
}
|
|
132
|
-
template.iconLabel.setLabel(element.symbol.name, element.symbol.detail, options);
|
|
133
|
-
if (this._renderMarker) {
|
|
134
|
-
this._renderMarkerInfo(element, template);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
_renderMarkerInfo(element, template) {
|
|
138
|
-
if (!element.marker) {
|
|
139
|
-
dom.hide(template.decoration);
|
|
140
|
-
template.container.style.removeProperty('--outline-element-color');
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
const { count, topSev } = element.marker;
|
|
144
|
-
const color = this._themeService.getColorTheme().getColor(topSev === MarkerSeverity.Error ? listErrorForeground : listWarningForeground);
|
|
145
|
-
const cssColor = color ? ( color.toString()) : 'inherit';
|
|
146
|
-
const problem = this._configurationService.getValue('problems.visibility');
|
|
147
|
-
const configProblems = this._configurationService.getValue("outline.problems.colors" );
|
|
148
|
-
if (!problem || !configProblems) {
|
|
149
|
-
template.container.style.removeProperty('--outline-element-color');
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
template.container.style.setProperty('--outline-element-color', cssColor);
|
|
153
|
-
}
|
|
154
|
-
if (problem === undefined) {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const configBadges = this._configurationService.getValue("outline.problems.badges" );
|
|
158
|
-
if (!configBadges || !problem) {
|
|
159
|
-
dom.hide(template.decoration);
|
|
160
|
-
}
|
|
161
|
-
else if (count > 0) {
|
|
162
|
-
dom.show(template.decoration);
|
|
163
|
-
template.decoration.classList.remove('bubble');
|
|
164
|
-
template.decoration.innerText = count < 10 ? ( count.toString()) : '+9';
|
|
165
|
-
template.decoration.title = count === 1 ? ( localizeWithPath(
|
|
166
|
-
'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
|
|
167
|
-
'1.problem',
|
|
168
|
-
"1 problem in this element"
|
|
169
|
-
)) : ( localizeWithPath(
|
|
170
|
-
'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
|
|
171
|
-
'N.problem',
|
|
172
|
-
"{0} problems in this element",
|
|
173
|
-
count
|
|
174
|
-
));
|
|
175
|
-
template.decoration.style.setProperty('--outline-element-color', cssColor);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
dom.show(template.decoration);
|
|
179
|
-
template.decoration.classList.add('bubble');
|
|
180
|
-
template.decoration.innerText = '\uea71';
|
|
181
|
-
template.decoration.title = ( localizeWithPath(
|
|
182
|
-
'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
|
|
183
|
-
'deep.problem',
|
|
184
|
-
"Contains elements with problems"
|
|
185
|
-
));
|
|
186
|
-
template.decoration.style.setProperty('--outline-element-color', cssColor);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
disposeTemplate(_template) {
|
|
190
|
-
_template.iconLabel.dispose();
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
DocumentSymbolRenderer = ( __decorate([
|
|
194
|
-
( __param(1, IConfigurationService)),
|
|
195
|
-
( __param(2, IThemeService))
|
|
196
|
-
], DocumentSymbolRenderer));
|
|
197
|
-
let DocumentSymbolFilter = class DocumentSymbolFilter {
|
|
198
|
-
static { DocumentSymbolFilter_1 = this; }
|
|
199
|
-
static { this.kindToConfigName = ( Object.freeze({
|
|
200
|
-
[0 ]: 'showFiles',
|
|
201
|
-
[1 ]: 'showModules',
|
|
202
|
-
[2 ]: 'showNamespaces',
|
|
203
|
-
[3 ]: 'showPackages',
|
|
204
|
-
[4 ]: 'showClasses',
|
|
205
|
-
[5 ]: 'showMethods',
|
|
206
|
-
[6 ]: 'showProperties',
|
|
207
|
-
[7 ]: 'showFields',
|
|
208
|
-
[8 ]: 'showConstructors',
|
|
209
|
-
[9 ]: 'showEnums',
|
|
210
|
-
[10 ]: 'showInterfaces',
|
|
211
|
-
[11 ]: 'showFunctions',
|
|
212
|
-
[12 ]: 'showVariables',
|
|
213
|
-
[13 ]: 'showConstants',
|
|
214
|
-
[14 ]: 'showStrings',
|
|
215
|
-
[15 ]: 'showNumbers',
|
|
216
|
-
[16 ]: 'showBooleans',
|
|
217
|
-
[17 ]: 'showArrays',
|
|
218
|
-
[18 ]: 'showObjects',
|
|
219
|
-
[19 ]: 'showKeys',
|
|
220
|
-
[20 ]: 'showNull',
|
|
221
|
-
[21 ]: 'showEnumMembers',
|
|
222
|
-
[22 ]: 'showStructs',
|
|
223
|
-
[23 ]: 'showEvents',
|
|
224
|
-
[24 ]: 'showOperators',
|
|
225
|
-
[25 ]: 'showTypeParameters',
|
|
226
|
-
})); }
|
|
227
|
-
constructor(_prefix, _textResourceConfigService) {
|
|
228
|
-
this._prefix = _prefix;
|
|
229
|
-
this._textResourceConfigService = _textResourceConfigService;
|
|
230
|
-
}
|
|
231
|
-
filter(element) {
|
|
232
|
-
const outline = OutlineModel.get(element);
|
|
233
|
-
if (!(element instanceof OutlineElement)) {
|
|
234
|
-
return true;
|
|
235
|
-
}
|
|
236
|
-
const configName = DocumentSymbolFilter_1.kindToConfigName[element.symbol.kind];
|
|
237
|
-
const configKey = `${this._prefix}.${configName}`;
|
|
238
|
-
return this._textResourceConfigService.getValue(outline?.uri, configKey);
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
DocumentSymbolFilter = DocumentSymbolFilter_1 = ( __decorate([
|
|
242
|
-
( __param(1, ITextResourceConfigurationService))
|
|
243
|
-
], DocumentSymbolFilter));
|
|
244
|
-
class DocumentSymbolComparator {
|
|
245
|
-
constructor() {
|
|
246
|
-
this._collator = new dom.WindowIdleValue(mainWindow, () => new Intl.Collator(undefined, { numeric: true }));
|
|
247
|
-
}
|
|
248
|
-
compareByPosition(a, b) {
|
|
249
|
-
if (a instanceof OutlineGroup && b instanceof OutlineGroup) {
|
|
250
|
-
return a.order - b.order;
|
|
251
|
-
}
|
|
252
|
-
else if (a instanceof OutlineElement && b instanceof OutlineElement) {
|
|
253
|
-
return Range.compareRangesUsingStarts(a.symbol.range, b.symbol.range) || this._collator.value.compare(a.symbol.name, b.symbol.name);
|
|
254
|
-
}
|
|
255
|
-
return 0;
|
|
256
|
-
}
|
|
257
|
-
compareByType(a, b) {
|
|
258
|
-
if (a instanceof OutlineGroup && b instanceof OutlineGroup) {
|
|
259
|
-
return a.order - b.order;
|
|
260
|
-
}
|
|
261
|
-
else if (a instanceof OutlineElement && b instanceof OutlineElement) {
|
|
262
|
-
return a.symbol.kind - b.symbol.kind || this._collator.value.compare(a.symbol.name, b.symbol.name);
|
|
263
|
-
}
|
|
264
|
-
return 0;
|
|
265
|
-
}
|
|
266
|
-
compareByName(a, b) {
|
|
267
|
-
if (a instanceof OutlineGroup && b instanceof OutlineGroup) {
|
|
268
|
-
return a.order - b.order;
|
|
269
|
-
}
|
|
270
|
-
else if (a instanceof OutlineElement && b instanceof OutlineElement) {
|
|
271
|
-
return this._collator.value.compare(a.symbol.name, b.symbol.name) || Range.compareRangesUsingStarts(a.symbol.range, b.symbol.range);
|
|
272
|
-
}
|
|
273
|
-
return 0;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export { DocumentSymbolAccessibilityProvider, DocumentSymbolComparator, DocumentSymbolFilter, DocumentSymbolGroupRenderer, DocumentSymbolIdentityProvider, DocumentSymbolNavigationLabelProvider, DocumentSymbolRenderer, DocumentSymbolVirtualDelegate };
|
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
import { localizeWithPath, localize2WithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
|
-
import { OutlinePane } from './outlinePane.js';
|
|
4
|
-
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
5
|
-
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
6
|
-
import { VIEW_CONTAINER } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
7
|
-
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
8
|
-
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
9
|
-
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
10
|
-
import { IOutlinePane } from './outline.js';
|
|
11
|
-
|
|
12
|
-
const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, ( localizeWithPath(
|
|
13
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
14
|
-
'outlineViewIcon',
|
|
15
|
-
'View icon of the outline view.'
|
|
16
|
-
)));
|
|
17
|
-
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
18
|
-
id: IOutlinePane.Id,
|
|
19
|
-
name: ( localize2WithPath(
|
|
20
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
21
|
-
'name',
|
|
22
|
-
"Outline"
|
|
23
|
-
)),
|
|
24
|
-
containerIcon: outlineViewIcon,
|
|
25
|
-
ctorDescriptor: ( new SyncDescriptor(OutlinePane)),
|
|
26
|
-
canToggleVisibility: true,
|
|
27
|
-
canMoveView: true,
|
|
28
|
-
hideByDefault: false,
|
|
29
|
-
collapsed: true,
|
|
30
|
-
order: 2,
|
|
31
|
-
weight: 30,
|
|
32
|
-
focusCommand: { id: 'outline.focus' }
|
|
33
|
-
}], VIEW_CONTAINER);
|
|
34
|
-
( Registry.as(Extensions$1.Configuration)).registerConfiguration({
|
|
35
|
-
'id': 'outline',
|
|
36
|
-
'order': 117,
|
|
37
|
-
'title': ( localizeWithPath(
|
|
38
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
39
|
-
'outlineConfigurationTitle',
|
|
40
|
-
"Outline"
|
|
41
|
-
)),
|
|
42
|
-
'type': 'object',
|
|
43
|
-
'properties': {
|
|
44
|
-
["outline.icons" ]: {
|
|
45
|
-
'description': ( localizeWithPath(
|
|
46
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
47
|
-
'outline.showIcons',
|
|
48
|
-
"Render Outline elements with icons."
|
|
49
|
-
)),
|
|
50
|
-
'type': 'boolean',
|
|
51
|
-
'default': true
|
|
52
|
-
},
|
|
53
|
-
["outline.collapseItems" ]: {
|
|
54
|
-
'description': ( localizeWithPath(
|
|
55
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
56
|
-
'outline.initialState',
|
|
57
|
-
"Controls whether Outline items are collapsed or expanded."
|
|
58
|
-
)),
|
|
59
|
-
'type': 'string',
|
|
60
|
-
scope: 5 ,
|
|
61
|
-
'enum': [
|
|
62
|
-
'alwaysCollapse',
|
|
63
|
-
'alwaysExpand'
|
|
64
|
-
],
|
|
65
|
-
'enumDescriptions': [
|
|
66
|
-
( localizeWithPath(
|
|
67
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
68
|
-
'outline.initialState.collapsed',
|
|
69
|
-
"Collapse all items."
|
|
70
|
-
)),
|
|
71
|
-
( localizeWithPath(
|
|
72
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
73
|
-
'outline.initialState.expanded',
|
|
74
|
-
"Expand all items."
|
|
75
|
-
))
|
|
76
|
-
],
|
|
77
|
-
'default': 'alwaysExpand'
|
|
78
|
-
},
|
|
79
|
-
["outline.problems.enabled" ]: {
|
|
80
|
-
'markdownDescription': ( localizeWithPath(
|
|
81
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
82
|
-
'outline.showProblem',
|
|
83
|
-
"Show errors and warnings on Outline elements. Overwritten by `#problems.visibility#` when it is off."
|
|
84
|
-
)),
|
|
85
|
-
'type': 'boolean',
|
|
86
|
-
'default': true
|
|
87
|
-
},
|
|
88
|
-
["outline.problems.colors" ]: {
|
|
89
|
-
'markdownDescription': ( localizeWithPath(
|
|
90
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
91
|
-
'outline.problem.colors',
|
|
92
|
-
"Use colors for errors and warnings on Outline elements. Overwritten by `#problems.visibility#` when it is off."
|
|
93
|
-
)),
|
|
94
|
-
'type': 'boolean',
|
|
95
|
-
'default': true
|
|
96
|
-
},
|
|
97
|
-
["outline.problems.badges" ]: {
|
|
98
|
-
'markdownDescription': ( localizeWithPath(
|
|
99
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
100
|
-
'outline.problems.badges',
|
|
101
|
-
"Use badges for errors and warnings on Outline elements. Overwritten by `#problems.visibility#` when it is off."
|
|
102
|
-
)),
|
|
103
|
-
'type': 'boolean',
|
|
104
|
-
'default': true
|
|
105
|
-
},
|
|
106
|
-
'outline.showFiles': {
|
|
107
|
-
type: 'boolean',
|
|
108
|
-
scope: 5 ,
|
|
109
|
-
default: true,
|
|
110
|
-
markdownDescription: ( localizeWithPath(
|
|
111
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
112
|
-
'filteredTypes.file',
|
|
113
|
-
"When enabled, Outline shows `file`-symbols."
|
|
114
|
-
))
|
|
115
|
-
},
|
|
116
|
-
'outline.showModules': {
|
|
117
|
-
type: 'boolean',
|
|
118
|
-
scope: 5 ,
|
|
119
|
-
default: true,
|
|
120
|
-
markdownDescription: ( localizeWithPath(
|
|
121
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
122
|
-
'filteredTypes.module',
|
|
123
|
-
"When enabled, Outline shows `module`-symbols."
|
|
124
|
-
))
|
|
125
|
-
},
|
|
126
|
-
'outline.showNamespaces': {
|
|
127
|
-
type: 'boolean',
|
|
128
|
-
default: true,
|
|
129
|
-
scope: 5 ,
|
|
130
|
-
markdownDescription: ( localizeWithPath(
|
|
131
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
132
|
-
'filteredTypes.namespace',
|
|
133
|
-
"When enabled, Outline shows `namespace`-symbols."
|
|
134
|
-
))
|
|
135
|
-
},
|
|
136
|
-
'outline.showPackages': {
|
|
137
|
-
type: 'boolean',
|
|
138
|
-
default: true,
|
|
139
|
-
scope: 5 ,
|
|
140
|
-
markdownDescription: ( localizeWithPath(
|
|
141
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
142
|
-
'filteredTypes.package',
|
|
143
|
-
"When enabled, Outline shows `package`-symbols."
|
|
144
|
-
))
|
|
145
|
-
},
|
|
146
|
-
'outline.showClasses': {
|
|
147
|
-
type: 'boolean',
|
|
148
|
-
default: true,
|
|
149
|
-
scope: 5 ,
|
|
150
|
-
markdownDescription: ( localizeWithPath(
|
|
151
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
152
|
-
'filteredTypes.class',
|
|
153
|
-
"When enabled, Outline shows `class`-symbols."
|
|
154
|
-
))
|
|
155
|
-
},
|
|
156
|
-
'outline.showMethods': {
|
|
157
|
-
type: 'boolean',
|
|
158
|
-
default: true,
|
|
159
|
-
scope: 5 ,
|
|
160
|
-
markdownDescription: ( localizeWithPath(
|
|
161
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
162
|
-
'filteredTypes.method',
|
|
163
|
-
"When enabled, Outline shows `method`-symbols."
|
|
164
|
-
))
|
|
165
|
-
},
|
|
166
|
-
'outline.showProperties': {
|
|
167
|
-
type: 'boolean',
|
|
168
|
-
default: true,
|
|
169
|
-
scope: 5 ,
|
|
170
|
-
markdownDescription: ( localizeWithPath(
|
|
171
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
172
|
-
'filteredTypes.property',
|
|
173
|
-
"When enabled, Outline shows `property`-symbols."
|
|
174
|
-
))
|
|
175
|
-
},
|
|
176
|
-
'outline.showFields': {
|
|
177
|
-
type: 'boolean',
|
|
178
|
-
default: true,
|
|
179
|
-
scope: 5 ,
|
|
180
|
-
markdownDescription: ( localizeWithPath(
|
|
181
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
182
|
-
'filteredTypes.field',
|
|
183
|
-
"When enabled, Outline shows `field`-symbols."
|
|
184
|
-
))
|
|
185
|
-
},
|
|
186
|
-
'outline.showConstructors': {
|
|
187
|
-
type: 'boolean',
|
|
188
|
-
default: true,
|
|
189
|
-
scope: 5 ,
|
|
190
|
-
markdownDescription: ( localizeWithPath(
|
|
191
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
192
|
-
'filteredTypes.constructor',
|
|
193
|
-
"When enabled, Outline shows `constructor`-symbols."
|
|
194
|
-
))
|
|
195
|
-
},
|
|
196
|
-
'outline.showEnums': {
|
|
197
|
-
type: 'boolean',
|
|
198
|
-
default: true,
|
|
199
|
-
scope: 5 ,
|
|
200
|
-
markdownDescription: ( localizeWithPath(
|
|
201
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
202
|
-
'filteredTypes.enum',
|
|
203
|
-
"When enabled, Outline shows `enum`-symbols."
|
|
204
|
-
))
|
|
205
|
-
},
|
|
206
|
-
'outline.showInterfaces': {
|
|
207
|
-
type: 'boolean',
|
|
208
|
-
default: true,
|
|
209
|
-
scope: 5 ,
|
|
210
|
-
markdownDescription: ( localizeWithPath(
|
|
211
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
212
|
-
'filteredTypes.interface',
|
|
213
|
-
"When enabled, Outline shows `interface`-symbols."
|
|
214
|
-
))
|
|
215
|
-
},
|
|
216
|
-
'outline.showFunctions': {
|
|
217
|
-
type: 'boolean',
|
|
218
|
-
default: true,
|
|
219
|
-
scope: 5 ,
|
|
220
|
-
markdownDescription: ( localizeWithPath(
|
|
221
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
222
|
-
'filteredTypes.function',
|
|
223
|
-
"When enabled, Outline shows `function`-symbols."
|
|
224
|
-
))
|
|
225
|
-
},
|
|
226
|
-
'outline.showVariables': {
|
|
227
|
-
type: 'boolean',
|
|
228
|
-
default: true,
|
|
229
|
-
scope: 5 ,
|
|
230
|
-
markdownDescription: ( localizeWithPath(
|
|
231
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
232
|
-
'filteredTypes.variable',
|
|
233
|
-
"When enabled, Outline shows `variable`-symbols."
|
|
234
|
-
))
|
|
235
|
-
},
|
|
236
|
-
'outline.showConstants': {
|
|
237
|
-
type: 'boolean',
|
|
238
|
-
default: true,
|
|
239
|
-
scope: 5 ,
|
|
240
|
-
markdownDescription: ( localizeWithPath(
|
|
241
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
242
|
-
'filteredTypes.constant',
|
|
243
|
-
"When enabled, Outline shows `constant`-symbols."
|
|
244
|
-
))
|
|
245
|
-
},
|
|
246
|
-
'outline.showStrings': {
|
|
247
|
-
type: 'boolean',
|
|
248
|
-
default: true,
|
|
249
|
-
scope: 5 ,
|
|
250
|
-
markdownDescription: ( localizeWithPath(
|
|
251
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
252
|
-
'filteredTypes.string',
|
|
253
|
-
"When enabled, Outline shows `string`-symbols."
|
|
254
|
-
))
|
|
255
|
-
},
|
|
256
|
-
'outline.showNumbers': {
|
|
257
|
-
type: 'boolean',
|
|
258
|
-
default: true,
|
|
259
|
-
scope: 5 ,
|
|
260
|
-
markdownDescription: ( localizeWithPath(
|
|
261
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
262
|
-
'filteredTypes.number',
|
|
263
|
-
"When enabled, Outline shows `number`-symbols."
|
|
264
|
-
))
|
|
265
|
-
},
|
|
266
|
-
'outline.showBooleans': {
|
|
267
|
-
type: 'boolean',
|
|
268
|
-
scope: 5 ,
|
|
269
|
-
default: true,
|
|
270
|
-
markdownDescription: ( localizeWithPath(
|
|
271
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
272
|
-
'filteredTypes.boolean',
|
|
273
|
-
"When enabled, Outline shows `boolean`-symbols."
|
|
274
|
-
))
|
|
275
|
-
},
|
|
276
|
-
'outline.showArrays': {
|
|
277
|
-
type: 'boolean',
|
|
278
|
-
default: true,
|
|
279
|
-
scope: 5 ,
|
|
280
|
-
markdownDescription: ( localizeWithPath(
|
|
281
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
282
|
-
'filteredTypes.array',
|
|
283
|
-
"When enabled, Outline shows `array`-symbols."
|
|
284
|
-
))
|
|
285
|
-
},
|
|
286
|
-
'outline.showObjects': {
|
|
287
|
-
type: 'boolean',
|
|
288
|
-
default: true,
|
|
289
|
-
scope: 5 ,
|
|
290
|
-
markdownDescription: ( localizeWithPath(
|
|
291
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
292
|
-
'filteredTypes.object',
|
|
293
|
-
"When enabled, Outline shows `object`-symbols."
|
|
294
|
-
))
|
|
295
|
-
},
|
|
296
|
-
'outline.showKeys': {
|
|
297
|
-
type: 'boolean',
|
|
298
|
-
default: true,
|
|
299
|
-
scope: 5 ,
|
|
300
|
-
markdownDescription: ( localizeWithPath(
|
|
301
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
302
|
-
'filteredTypes.key',
|
|
303
|
-
"When enabled, Outline shows `key`-symbols."
|
|
304
|
-
))
|
|
305
|
-
},
|
|
306
|
-
'outline.showNull': {
|
|
307
|
-
type: 'boolean',
|
|
308
|
-
default: true,
|
|
309
|
-
scope: 5 ,
|
|
310
|
-
markdownDescription: ( localizeWithPath(
|
|
311
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
312
|
-
'filteredTypes.null',
|
|
313
|
-
"When enabled, Outline shows `null`-symbols."
|
|
314
|
-
))
|
|
315
|
-
},
|
|
316
|
-
'outline.showEnumMembers': {
|
|
317
|
-
type: 'boolean',
|
|
318
|
-
default: true,
|
|
319
|
-
scope: 5 ,
|
|
320
|
-
markdownDescription: ( localizeWithPath(
|
|
321
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
322
|
-
'filteredTypes.enumMember',
|
|
323
|
-
"When enabled, Outline shows `enumMember`-symbols."
|
|
324
|
-
))
|
|
325
|
-
},
|
|
326
|
-
'outline.showStructs': {
|
|
327
|
-
type: 'boolean',
|
|
328
|
-
default: true,
|
|
329
|
-
scope: 5 ,
|
|
330
|
-
markdownDescription: ( localizeWithPath(
|
|
331
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
332
|
-
'filteredTypes.struct',
|
|
333
|
-
"When enabled, Outline shows `struct`-symbols."
|
|
334
|
-
))
|
|
335
|
-
},
|
|
336
|
-
'outline.showEvents': {
|
|
337
|
-
type: 'boolean',
|
|
338
|
-
default: true,
|
|
339
|
-
scope: 5 ,
|
|
340
|
-
markdownDescription: ( localizeWithPath(
|
|
341
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
342
|
-
'filteredTypes.event',
|
|
343
|
-
"When enabled, Outline shows `event`-symbols."
|
|
344
|
-
))
|
|
345
|
-
},
|
|
346
|
-
'outline.showOperators': {
|
|
347
|
-
type: 'boolean',
|
|
348
|
-
default: true,
|
|
349
|
-
scope: 5 ,
|
|
350
|
-
markdownDescription: ( localizeWithPath(
|
|
351
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
352
|
-
'filteredTypes.operator',
|
|
353
|
-
"When enabled, Outline shows `operator`-symbols."
|
|
354
|
-
))
|
|
355
|
-
},
|
|
356
|
-
'outline.showTypeParameters': {
|
|
357
|
-
type: 'boolean',
|
|
358
|
-
default: true,
|
|
359
|
-
scope: 5 ,
|
|
360
|
-
markdownDescription: ( localizeWithPath(
|
|
361
|
-
'vs/workbench/contrib/outline/browser/outline.contribution',
|
|
362
|
-
'filteredTypes.typeParameter',
|
|
363
|
-
"When enabled, Outline shows `typeParameter`-symbols."
|
|
364
|
-
))
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
2
|
-
|
|
3
|
-
var IOutlinePane;
|
|
4
|
-
( (function(IOutlinePane) {
|
|
5
|
-
IOutlinePane.Id = 'outline';
|
|
6
|
-
})(IOutlinePane || (IOutlinePane = {})));
|
|
7
|
-
const ctxFollowsCursor = ( new RawContextKey('outlineFollowsCursor', false));
|
|
8
|
-
const ctxFilterOnType = ( new RawContextKey('outlineFiltersOnType', false));
|
|
9
|
-
const ctxSortMode = ( new RawContextKey('outlineSortMode', 0 ));
|
|
10
|
-
const ctxAllCollapsed = ( new RawContextKey('outlineAllCollapsed', false));
|
|
11
|
-
|
|
12
|
-
export { IOutlinePane, ctxAllCollapsed, ctxFilterOnType, ctxFollowsCursor, ctxSortMode };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
|
|
3
|
-
var css = ".monaco-workbench .outline-pane{display:flex;flex-direction:column}.monaco-workbench .outline-pane .outline-progress{height:2px;padding-bottom:3px;position:absolute;width:100%}.monaco-workbench .outline-pane .outline-tree{height:100%}.monaco-workbench .outline-pane .outline-message{display:none;opacity:.5;padding:10px 22px 0;pointer-events:none;position:absolute;z-index:1}.monaco-workbench .outline-pane.message .outline-message{display:inherit}.monaco-workbench .outline-pane.message .outline-progress{display:none}";
|
|
4
|
-
n(css,{});
|
|
5
|
-
|
|
6
|
-
export { css, css as default };
|