@codingame/monaco-vscode-views-service-override 1.83.2 → 1.83.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 +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +50 -179
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +44 -21
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +24 -18
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -2
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +16 -8
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +20 -28
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +20 -24
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +4 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +4 -9
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +8 -29
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +12 -19
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -55
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +110 -38
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +6 -11
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +463 -3
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +5 -11
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -1
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +31 -23
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +37 -76
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +4 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +5 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -23
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +62 -117
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +18 -16
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +37 -28
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -3
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -2
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -5,7 +5,7 @@ import { renderLabelWithIcons } from 'monaco-editor/esm/vs/base/browser/ui/iconL
|
|
|
5
5
|
import { DisposableStore, dispose, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
6
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
7
7
|
import { getCodeEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
|
|
8
|
-
import {
|
|
8
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
9
9
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
10
10
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
11
11
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
@@ -151,12 +151,8 @@ let EditorStatusContribution = class EditorStatusContribution {
|
|
|
151
151
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
152
152
|
}
|
|
153
153
|
const props = {
|
|
154
|
-
name: (
|
|
155
|
-
ariaLabel: (
|
|
156
|
-
'langStatus.aria',
|
|
157
|
-
"Editor Language Status: {0}",
|
|
158
|
-
ariaLabels.join(', next: ')
|
|
159
|
-
)),
|
|
154
|
+
name: localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'langStatus.name', "Editor Language Status"),
|
|
155
|
+
ariaLabel: localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'langStatus.aria', "Editor Language Status: {0}", ariaLabels.join(', next: ')),
|
|
160
156
|
tooltip: element,
|
|
161
157
|
command: ShowTooltipCommand,
|
|
162
158
|
text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
|
|
@@ -254,20 +250,32 @@ let EditorStatusContribution = class EditorStatusContribution {
|
|
|
254
250
|
store.add(actionBar);
|
|
255
251
|
let action;
|
|
256
252
|
if (!isPinned) {
|
|
257
|
-
action = ( new Action(
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
action = ( new Action(
|
|
254
|
+
'pin',
|
|
255
|
+
localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'pin', "Add to Status Bar"),
|
|
256
|
+
ThemeIcon.asClassName(Codicon.pin),
|
|
257
|
+
true,
|
|
258
|
+
() => {
|
|
259
|
+
this._dedicated.add(status.id);
|
|
260
|
+
this._statusBarService.updateEntryVisibility(status.id, true);
|
|
261
|
+
this._update();
|
|
262
|
+
this._storeState();
|
|
263
|
+
}
|
|
264
|
+
));
|
|
263
265
|
}
|
|
264
266
|
else {
|
|
265
|
-
action = ( new Action(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
267
|
+
action = ( new Action(
|
|
268
|
+
'unpin',
|
|
269
|
+
localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'unpin', "Remove from Status Bar"),
|
|
270
|
+
ThemeIcon.asClassName(Codicon.pinned),
|
|
271
|
+
true,
|
|
272
|
+
() => {
|
|
273
|
+
this._dedicated.delete(status.id);
|
|
274
|
+
this._statusBarService.updateEntryVisibility(status.id, false);
|
|
275
|
+
this._update();
|
|
276
|
+
this._storeState();
|
|
277
|
+
}
|
|
278
|
+
));
|
|
271
279
|
}
|
|
272
280
|
actionBar.push(action, { icon: true, label: false });
|
|
273
281
|
store.add(action);
|
|
@@ -303,10 +311,10 @@ let EditorStatusContribution = class EditorStatusContribution {
|
|
|
303
311
|
return status.accessibilityInfo.label;
|
|
304
312
|
}
|
|
305
313
|
else if (status.detail) {
|
|
306
|
-
return (
|
|
314
|
+
return localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'aria.1', '{0}, {1}', status.label, status.detail);
|
|
307
315
|
}
|
|
308
316
|
else {
|
|
309
|
-
return (
|
|
317
|
+
return localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'aria.2', '{0}', status.label);
|
|
310
318
|
}
|
|
311
319
|
}
|
|
312
320
|
static _asStatusbarEntry(item) {
|
|
@@ -318,7 +326,7 @@ let EditorStatusContribution = class EditorStatusContribution {
|
|
|
318
326
|
kind = 'error';
|
|
319
327
|
}
|
|
320
328
|
return {
|
|
321
|
-
name: (
|
|
329
|
+
name: localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'name.pattern', '{0} (Language Status)', item.name),
|
|
322
330
|
text: item.busy ? `${item.label}\u00A0\u00A0$(sync~spin)` : item.label,
|
|
323
331
|
ariaLabel: item.accessibilityInfo?.label ?? item.label,
|
|
324
332
|
role: item.accessibilityInfo?.role,
|
|
@@ -341,7 +349,7 @@ registerAction2(class extends Action2 {
|
|
|
341
349
|
super({
|
|
342
350
|
id: 'editor.inlayHints.Reset',
|
|
343
351
|
title: {
|
|
344
|
-
value: (
|
|
352
|
+
value: localizeWithPath('vs/workbench/contrib/languageStatus/browser/languageStatus.contribution', 'reset', 'Reset Language Status Interaction Counter'),
|
|
345
353
|
original: 'Reset Language Status Interaction Counter'
|
|
346
354
|
},
|
|
347
355
|
category: Categories.View,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
2
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
3
|
import { OutlinePane } from './outlinePane.js';
|
|
4
4
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
@@ -9,10 +9,10 @@ import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
|
9
9
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
10
10
|
import { IOutlinePane } from './outline.js';
|
|
11
11
|
|
|
12
|
-
const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, (
|
|
12
|
+
const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outlineViewIcon', 'View icon of the outline view.'));
|
|
13
13
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
14
14
|
id: IOutlinePane.Id,
|
|
15
|
-
name: (
|
|
15
|
+
name: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'name', "Outline"),
|
|
16
16
|
containerIcon: outlineViewIcon,
|
|
17
17
|
ctorDescriptor: ( new SyncDescriptor(OutlinePane)),
|
|
18
18
|
canToggleVisibility: true,
|
|
@@ -26,19 +26,16 @@ const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, (
|
|
|
26
26
|
( Registry.as(Extensions$1.Configuration)).registerConfiguration({
|
|
27
27
|
'id': 'outline',
|
|
28
28
|
'order': 117,
|
|
29
|
-
'title': (
|
|
29
|
+
'title': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outlineConfigurationTitle', "Outline"),
|
|
30
30
|
'type': 'object',
|
|
31
31
|
'properties': {
|
|
32
32
|
["outline.icons" ]: {
|
|
33
|
-
'description': (
|
|
33
|
+
'description': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.showIcons', "Render Outline elements with icons."),
|
|
34
34
|
'type': 'boolean',
|
|
35
35
|
'default': true
|
|
36
36
|
},
|
|
37
37
|
["outline.collapseItems" ]: {
|
|
38
|
-
'description': (
|
|
39
|
-
'outline.initialState',
|
|
40
|
-
"Controls whether Outline items are collapsed or expanded."
|
|
41
|
-
)),
|
|
38
|
+
'description': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.initialState', "Controls whether Outline items are collapsed or expanded."),
|
|
42
39
|
'type': 'string',
|
|
43
40
|
scope: 5 ,
|
|
44
41
|
'enum': [
|
|
@@ -46,29 +43,23 @@ const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, (
|
|
|
46
43
|
'alwaysExpand'
|
|
47
44
|
],
|
|
48
45
|
'enumDescriptions': [
|
|
49
|
-
(
|
|
50
|
-
(
|
|
46
|
+
localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.initialState.collapsed', "Collapse all items."),
|
|
47
|
+
localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.initialState.expanded', "Expand all items.")
|
|
51
48
|
],
|
|
52
49
|
'default': 'alwaysExpand'
|
|
53
50
|
},
|
|
54
51
|
["outline.problems.enabled" ]: {
|
|
55
|
-
'description': (
|
|
52
|
+
'description': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.showProblem', "Show errors and warnings on Outline elements."),
|
|
56
53
|
'type': 'boolean',
|
|
57
54
|
'default': true
|
|
58
55
|
},
|
|
59
56
|
["outline.problems.colors" ]: {
|
|
60
|
-
'description': (
|
|
61
|
-
'outline.problem.colors',
|
|
62
|
-
"Use colors for errors and warnings on Outline elements."
|
|
63
|
-
)),
|
|
57
|
+
'description': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.problem.colors', "Use colors for errors and warnings on Outline elements."),
|
|
64
58
|
'type': 'boolean',
|
|
65
59
|
'default': true
|
|
66
60
|
},
|
|
67
61
|
["outline.problems.badges" ]: {
|
|
68
|
-
'description': (
|
|
69
|
-
'outline.problems.badges',
|
|
70
|
-
"Use badges for errors and warnings on Outline elements."
|
|
71
|
-
)),
|
|
62
|
+
'description': localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'outline.problems.badges', "Use badges for errors and warnings on Outline elements."),
|
|
72
63
|
'type': 'boolean',
|
|
73
64
|
'default': true
|
|
74
65
|
},
|
|
@@ -76,187 +67,157 @@ const outlineViewIcon = registerIcon('outline-view-icon', Codicon.symbolClass, (
|
|
|
76
67
|
type: 'boolean',
|
|
77
68
|
scope: 5 ,
|
|
78
69
|
default: true,
|
|
79
|
-
markdownDescription: (
|
|
70
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.file', "When enabled, Outline shows `file`-symbols.")
|
|
80
71
|
},
|
|
81
72
|
'outline.showModules': {
|
|
82
73
|
type: 'boolean',
|
|
83
74
|
scope: 5 ,
|
|
84
75
|
default: true,
|
|
85
|
-
markdownDescription: (
|
|
76
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.module', "When enabled, Outline shows `module`-symbols.")
|
|
86
77
|
},
|
|
87
78
|
'outline.showNamespaces': {
|
|
88
79
|
type: 'boolean',
|
|
89
80
|
default: true,
|
|
90
81
|
scope: 5 ,
|
|
91
|
-
markdownDescription: (
|
|
92
|
-
'filteredTypes.namespace',
|
|
93
|
-
"When enabled, Outline shows `namespace`-symbols."
|
|
94
|
-
))
|
|
82
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.namespace', "When enabled, Outline shows `namespace`-symbols.")
|
|
95
83
|
},
|
|
96
84
|
'outline.showPackages': {
|
|
97
85
|
type: 'boolean',
|
|
98
86
|
default: true,
|
|
99
87
|
scope: 5 ,
|
|
100
|
-
markdownDescription: (
|
|
88
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.package', "When enabled, Outline shows `package`-symbols.")
|
|
101
89
|
},
|
|
102
90
|
'outline.showClasses': {
|
|
103
91
|
type: 'boolean',
|
|
104
92
|
default: true,
|
|
105
93
|
scope: 5 ,
|
|
106
|
-
markdownDescription: (
|
|
94
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.class', "When enabled, Outline shows `class`-symbols.")
|
|
107
95
|
},
|
|
108
96
|
'outline.showMethods': {
|
|
109
97
|
type: 'boolean',
|
|
110
98
|
default: true,
|
|
111
99
|
scope: 5 ,
|
|
112
|
-
markdownDescription: (
|
|
100
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.method', "When enabled, Outline shows `method`-symbols.")
|
|
113
101
|
},
|
|
114
102
|
'outline.showProperties': {
|
|
115
103
|
type: 'boolean',
|
|
116
104
|
default: true,
|
|
117
105
|
scope: 5 ,
|
|
118
|
-
markdownDescription: (
|
|
119
|
-
'filteredTypes.property',
|
|
120
|
-
"When enabled, Outline shows `property`-symbols."
|
|
121
|
-
))
|
|
106
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.property', "When enabled, Outline shows `property`-symbols.")
|
|
122
107
|
},
|
|
123
108
|
'outline.showFields': {
|
|
124
109
|
type: 'boolean',
|
|
125
110
|
default: true,
|
|
126
111
|
scope: 5 ,
|
|
127
|
-
markdownDescription: (
|
|
112
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.field', "When enabled, Outline shows `field`-symbols.")
|
|
128
113
|
},
|
|
129
114
|
'outline.showConstructors': {
|
|
130
115
|
type: 'boolean',
|
|
131
116
|
default: true,
|
|
132
117
|
scope: 5 ,
|
|
133
|
-
markdownDescription: (
|
|
134
|
-
'filteredTypes.constructor',
|
|
135
|
-
"When enabled, Outline shows `constructor`-symbols."
|
|
136
|
-
))
|
|
118
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.constructor', "When enabled, Outline shows `constructor`-symbols.")
|
|
137
119
|
},
|
|
138
120
|
'outline.showEnums': {
|
|
139
121
|
type: 'boolean',
|
|
140
122
|
default: true,
|
|
141
123
|
scope: 5 ,
|
|
142
|
-
markdownDescription: (
|
|
124
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.enum', "When enabled, Outline shows `enum`-symbols.")
|
|
143
125
|
},
|
|
144
126
|
'outline.showInterfaces': {
|
|
145
127
|
type: 'boolean',
|
|
146
128
|
default: true,
|
|
147
129
|
scope: 5 ,
|
|
148
|
-
markdownDescription: (
|
|
149
|
-
'filteredTypes.interface',
|
|
150
|
-
"When enabled, Outline shows `interface`-symbols."
|
|
151
|
-
))
|
|
130
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.interface', "When enabled, Outline shows `interface`-symbols.")
|
|
152
131
|
},
|
|
153
132
|
'outline.showFunctions': {
|
|
154
133
|
type: 'boolean',
|
|
155
134
|
default: true,
|
|
156
135
|
scope: 5 ,
|
|
157
|
-
markdownDescription: (
|
|
158
|
-
'filteredTypes.function',
|
|
159
|
-
"When enabled, Outline shows `function`-symbols."
|
|
160
|
-
))
|
|
136
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.function', "When enabled, Outline shows `function`-symbols.")
|
|
161
137
|
},
|
|
162
138
|
'outline.showVariables': {
|
|
163
139
|
type: 'boolean',
|
|
164
140
|
default: true,
|
|
165
141
|
scope: 5 ,
|
|
166
|
-
markdownDescription: (
|
|
167
|
-
'filteredTypes.variable',
|
|
168
|
-
"When enabled, Outline shows `variable`-symbols."
|
|
169
|
-
))
|
|
142
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.variable', "When enabled, Outline shows `variable`-symbols.")
|
|
170
143
|
},
|
|
171
144
|
'outline.showConstants': {
|
|
172
145
|
type: 'boolean',
|
|
173
146
|
default: true,
|
|
174
147
|
scope: 5 ,
|
|
175
|
-
markdownDescription: (
|
|
176
|
-
'filteredTypes.constant',
|
|
177
|
-
"When enabled, Outline shows `constant`-symbols."
|
|
178
|
-
))
|
|
148
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.constant', "When enabled, Outline shows `constant`-symbols.")
|
|
179
149
|
},
|
|
180
150
|
'outline.showStrings': {
|
|
181
151
|
type: 'boolean',
|
|
182
152
|
default: true,
|
|
183
153
|
scope: 5 ,
|
|
184
|
-
markdownDescription: (
|
|
154
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.string', "When enabled, Outline shows `string`-symbols.")
|
|
185
155
|
},
|
|
186
156
|
'outline.showNumbers': {
|
|
187
157
|
type: 'boolean',
|
|
188
158
|
default: true,
|
|
189
159
|
scope: 5 ,
|
|
190
|
-
markdownDescription: (
|
|
160
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.number', "When enabled, Outline shows `number`-symbols.")
|
|
191
161
|
},
|
|
192
162
|
'outline.showBooleans': {
|
|
193
163
|
type: 'boolean',
|
|
194
164
|
scope: 5 ,
|
|
195
165
|
default: true,
|
|
196
|
-
markdownDescription: (
|
|
166
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.boolean', "When enabled, Outline shows `boolean`-symbols.")
|
|
197
167
|
},
|
|
198
168
|
'outline.showArrays': {
|
|
199
169
|
type: 'boolean',
|
|
200
170
|
default: true,
|
|
201
171
|
scope: 5 ,
|
|
202
|
-
markdownDescription: (
|
|
172
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.array', "When enabled, Outline shows `array`-symbols.")
|
|
203
173
|
},
|
|
204
174
|
'outline.showObjects': {
|
|
205
175
|
type: 'boolean',
|
|
206
176
|
default: true,
|
|
207
177
|
scope: 5 ,
|
|
208
|
-
markdownDescription: (
|
|
178
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.object', "When enabled, Outline shows `object`-symbols.")
|
|
209
179
|
},
|
|
210
180
|
'outline.showKeys': {
|
|
211
181
|
type: 'boolean',
|
|
212
182
|
default: true,
|
|
213
183
|
scope: 5 ,
|
|
214
|
-
markdownDescription: (
|
|
184
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.key', "When enabled, Outline shows `key`-symbols.")
|
|
215
185
|
},
|
|
216
186
|
'outline.showNull': {
|
|
217
187
|
type: 'boolean',
|
|
218
188
|
default: true,
|
|
219
189
|
scope: 5 ,
|
|
220
|
-
markdownDescription: (
|
|
190
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.null', "When enabled, Outline shows `null`-symbols.")
|
|
221
191
|
},
|
|
222
192
|
'outline.showEnumMembers': {
|
|
223
193
|
type: 'boolean',
|
|
224
194
|
default: true,
|
|
225
195
|
scope: 5 ,
|
|
226
|
-
markdownDescription: (
|
|
227
|
-
'filteredTypes.enumMember',
|
|
228
|
-
"When enabled, Outline shows `enumMember`-symbols."
|
|
229
|
-
))
|
|
196
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.enumMember', "When enabled, Outline shows `enumMember`-symbols.")
|
|
230
197
|
},
|
|
231
198
|
'outline.showStructs': {
|
|
232
199
|
type: 'boolean',
|
|
233
200
|
default: true,
|
|
234
201
|
scope: 5 ,
|
|
235
|
-
markdownDescription: (
|
|
202
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.struct', "When enabled, Outline shows `struct`-symbols.")
|
|
236
203
|
},
|
|
237
204
|
'outline.showEvents': {
|
|
238
205
|
type: 'boolean',
|
|
239
206
|
default: true,
|
|
240
207
|
scope: 5 ,
|
|
241
|
-
markdownDescription: (
|
|
208
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.event', "When enabled, Outline shows `event`-symbols.")
|
|
242
209
|
},
|
|
243
210
|
'outline.showOperators': {
|
|
244
211
|
type: 'boolean',
|
|
245
212
|
default: true,
|
|
246
213
|
scope: 5 ,
|
|
247
|
-
markdownDescription: (
|
|
248
|
-
'filteredTypes.operator',
|
|
249
|
-
"When enabled, Outline shows `operator`-symbols."
|
|
250
|
-
))
|
|
214
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.operator', "When enabled, Outline shows `operator`-symbols.")
|
|
251
215
|
},
|
|
252
216
|
'outline.showTypeParameters': {
|
|
253
217
|
type: 'boolean',
|
|
254
218
|
default: true,
|
|
255
219
|
scope: 5 ,
|
|
256
|
-
markdownDescription: (
|
|
257
|
-
'filteredTypes.typeParameter',
|
|
258
|
-
"When enabled, Outline shows `typeParameter`-symbols."
|
|
259
|
-
))
|
|
220
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/outline/browser/outline.contribution', 'filteredTypes.typeParameter', "When enabled, Outline shows `typeParameter`-symbols.")
|
|
260
221
|
}
|
|
261
222
|
}
|
|
262
223
|
});
|
|
@@ -5,7 +5,7 @@ import { ProgressBar } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/pr
|
|
|
5
5
|
import { TimeoutTimer } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
6
6
|
import { DisposableStore, MutableDisposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
7
7
|
import { LRUCache } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
8
|
-
import {
|
|
8
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
9
9
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
10
10
|
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
11
11
|
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
@@ -154,12 +154,12 @@ let OutlinePane = class OutlinePane extends ViewPane {
|
|
|
154
154
|
const didCapture = this._captureViewState();
|
|
155
155
|
this._editorControlDisposables.clear();
|
|
156
156
|
if (!pane || !this._outlineService.canCreateOutline(pane) || !resource) {
|
|
157
|
-
return this._showMessage((
|
|
157
|
+
return this._showMessage(localizeWithPath('vs/workbench/contrib/outline/browser/outlinePane', 'no-editor', "The active editor cannot provide outline information."));
|
|
158
158
|
}
|
|
159
159
|
let loadingMessage;
|
|
160
160
|
if (!didCapture) {
|
|
161
161
|
loadingMessage = ( new TimeoutTimer(() => {
|
|
162
|
-
this._showMessage((
|
|
162
|
+
this._showMessage(localizeWithPath('vs/workbench/contrib/outline/browser/outlinePane', 'loading', "Loading document symbols for '{0}'...", basename(resource)));
|
|
163
163
|
}, 100));
|
|
164
164
|
}
|
|
165
165
|
this._progressBar.infinite().show(500);
|
|
@@ -189,7 +189,7 @@ let OutlinePane = class OutlinePane extends ViewPane {
|
|
|
189
189
|
});
|
|
190
190
|
const updateTree = () => {
|
|
191
191
|
if (newOutline.isEmpty) {
|
|
192
|
-
this._showMessage((
|
|
192
|
+
this._showMessage(localizeWithPath('vs/workbench/contrib/outline/browser/outlinePane', 'no-symbols', "No symbols found in document '{0}'", basename(resource)));
|
|
193
193
|
this._captureViewState(resource);
|
|
194
194
|
tree.setInput(undefined);
|
|
195
195
|
}
|
|
@@ -102,18 +102,10 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
basicMessage(tunnel) {
|
|
105
|
-
return (
|
|
106
|
-
'remote.tunnelsView.automaticForward',
|
|
107
|
-
"Your application running on port {0} is available. ",
|
|
108
|
-
tunnel.tunnelRemotePort
|
|
109
|
-
));
|
|
105
|
+
return nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteExplorer', 'remote.tunnelsView.automaticForward', "Your application running on port {0} is available. ", tunnel.tunnelRemotePort);
|
|
110
106
|
}
|
|
111
107
|
linkMessage() {
|
|
112
|
-
return (
|
|
113
|
-
{ key: 'remote.tunnelsView.notificationLink2', comment: ['[See all forwarded ports]({0}) is a link. Only translate `See all forwarded ports`. Do not change brackets and parentheses or {0}'] },
|
|
114
|
-
"[See all forwarded ports]({0})",
|
|
115
|
-
`command:${TunnelPanel.ID}.focus`
|
|
116
|
-
));
|
|
108
|
+
return nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteExplorer', { key: 'remote.tunnelsView.notificationLink2', comment: ['[See all forwarded ports]({0}) is a link. Only translate `See all forwarded ports`. Do not change brackets and parentheses or {0}'] }, "[See all forwarded ports]({0})", `command:${TunnelPanel.ID}.focus`);
|
|
117
109
|
}
|
|
118
110
|
async showNotification(tunnel) {
|
|
119
111
|
if (!(await this.hostService.hadLastFocus())) {
|
|
@@ -126,11 +118,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
126
118
|
choices.push(this.openPreviewChoice(tunnel));
|
|
127
119
|
}
|
|
128
120
|
if ((tunnel.tunnelLocalPort !== tunnel.tunnelRemotePort) && this.tunnelService.canElevate && this.tunnelService.isPortPrivileged(tunnel.tunnelRemotePort)) {
|
|
129
|
-
message += (
|
|
130
|
-
'remote.tunnelsView.elevationMessage',
|
|
131
|
-
"You'll need to run as superuser to use port {0} locally. ",
|
|
132
|
-
tunnel.tunnelRemotePort
|
|
133
|
-
));
|
|
121
|
+
message += nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteExplorer', 'remote.tunnelsView.elevationMessage', "You'll need to run as superuser to use port {0} locally. ", tunnel.tunnelRemotePort);
|
|
134
122
|
choices.unshift(this.elevateChoice(tunnel));
|
|
135
123
|
}
|
|
136
124
|
if (tunnel.privacy === TunnelPrivacyId.Private && isWeb && this.tunnelService.canChangePrivacy) {
|
|
@@ -147,7 +135,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
147
135
|
}
|
|
148
136
|
makePublicChoice(tunnel) {
|
|
149
137
|
return {
|
|
150
|
-
label:
|
|
138
|
+
label: nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteExplorer', 'remote.tunnelsView.makePublic', "Make Public"),
|
|
151
139
|
run: async () => {
|
|
152
140
|
const oldTunnelDetails = mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.forwarded, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
153
141
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -178,11 +166,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
178
166
|
}
|
|
179
167
|
elevateChoice(tunnel) {
|
|
180
168
|
return {
|
|
181
|
-
label: (
|
|
182
|
-
'remote.tunnelsView.elevationButton',
|
|
183
|
-
"Use Port {0} as Sudo...",
|
|
184
|
-
tunnel.tunnelRemotePort
|
|
185
|
-
)),
|
|
169
|
+
label: nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteExplorer', 'remote.tunnelsView.elevationButton', "Use Port {0} as Sudo...", tunnel.tunnelRemotePort),
|
|
186
170
|
run: async () => {
|
|
187
171
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
188
172
|
const newTunnel = await this.remoteExplorerService.forward({
|
|
@@ -2,28 +2,22 @@ import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
|
2
2
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
3
3
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
4
4
|
|
|
5
|
-
registerIcon('remote-explorer-get-started', Codicon.star,
|
|
6
|
-
registerIcon('remote-explorer-documentation', Codicon.book,
|
|
7
|
-
registerIcon('remote-explorer-feedback', Codicon.twitter,
|
|
8
|
-
registerIcon('remote-explorer-review-issues', Codicon.issues,
|
|
9
|
-
registerIcon('remote-explorer-report-issues', Codicon.comment,
|
|
10
|
-
registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer,
|
|
11
|
-
registerIcon('ports-view-icon', Codicon.plug,
|
|
12
|
-
registerIcon('ports-view-icon', Codicon.plug,
|
|
13
|
-
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock,
|
|
14
|
-
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus,
|
|
15
|
-
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x,
|
|
16
|
-
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe,
|
|
17
|
-
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview,
|
|
18
|
-
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy,
|
|
19
|
-
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag,
|
|
20
|
-
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, (
|
|
21
|
-
'
|
|
22
|
-
'Icon for forwarded ports that don\'t have a running process.'
|
|
23
|
-
)));
|
|
24
|
-
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( nls.localize(
|
|
25
|
-
'forwardedPortWithProcessIcon',
|
|
26
|
-
'Icon for forwarded ports that do have a running process.'
|
|
27
|
-
)));
|
|
5
|
+
registerIcon('remote-explorer-get-started', Codicon.star, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'getStartedIcon', 'Getting started icon in the remote explorer view.'));
|
|
6
|
+
registerIcon('remote-explorer-documentation', Codicon.book, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'documentationIcon', 'Documentation icon in the remote explorer view.'));
|
|
7
|
+
registerIcon('remote-explorer-feedback', Codicon.twitter, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'feedbackIcon', 'Feedback icon in the remote explorer view.'));
|
|
8
|
+
registerIcon('remote-explorer-review-issues', Codicon.issues, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'reviewIssuesIcon', 'Review issue icon in the remote explorer view.'));
|
|
9
|
+
registerIcon('remote-explorer-report-issues', Codicon.comment, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'reportIssuesIcon', 'Report issue icon in the remote explorer view.'));
|
|
10
|
+
registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'remoteExplorerViewIcon', 'View icon of the remote explorer view.'));
|
|
11
|
+
registerIcon('ports-view-icon', Codicon.plug, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'portsViewIcon', 'View icon of the remote ports view.'));
|
|
12
|
+
registerIcon('ports-view-icon', Codicon.plug, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'portIcon', 'Icon representing a remote port.'));
|
|
13
|
+
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'privatePortIcon', 'Icon representing a private remote port.'));
|
|
14
|
+
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'forwardPortIcon', 'Icon for the forward action.'));
|
|
15
|
+
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'stopForwardIcon', 'Icon for the stop forwarding action.'));
|
|
16
|
+
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'openBrowserIcon', 'Icon for the open browser action.'));
|
|
17
|
+
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'openPreviewIcon', 'Icon for the open preview action.'));
|
|
18
|
+
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'copyAddressIcon', 'Icon for the copy local address action.'));
|
|
19
|
+
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'labelPortIcon', 'Icon for the label port action.'));
|
|
20
|
+
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'forwardedPortWithoutProcessIcon', 'Icon for forwarded ports that don\'t have a running process.'));
|
|
21
|
+
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, nls.localizeWithPath('vs/workbench/contrib/remote/browser/remoteIcons', 'forwardedPortWithProcessIcon', 'Icon for forwarded ports that do have a running process.'));
|
|
28
22
|
|
|
29
23
|
export { copyAddressIcon, forwardPortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, labelPortIcon, openBrowserIcon, openPreviewIcon, privatePortIcon, stopForwardIcon };
|