@codingame/monaco-vscode-views-service-override 1.83.4 → 1.83.6
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/index.d.ts +8 -3
- package/index.js +7 -1
- package/l10n.js +8 -0
- package/missing-services.js +2141 -0
- package/package.json +2 -2
- package/services.js +95 -0
- package/views.d.ts +51 -15
- package/views.js +124 -96
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +262 -49
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +57 -42
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +51 -11
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +14 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +18 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +52 -20
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +23 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +60 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +11 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +27 -15
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +32 -19
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -18
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +55 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +22 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +40 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +36 -10
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +111 -16
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +153 -97
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +28 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +11 -463
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +16 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +10 -4
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +27 -5
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +53 -28
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +180 -36
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +17 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +85 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +301 -62
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +48 -16
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +25 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +49 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +36 -36
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +6 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +5 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +5 -1
|
@@ -154,12 +154,21 @@ 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(localizeWithPath(
|
|
157
|
+
return this._showMessage(( localizeWithPath(
|
|
158
|
+
'vs/workbench/contrib/outline/browser/outlinePane',
|
|
159
|
+
'no-editor',
|
|
160
|
+
"The active editor cannot provide outline information."
|
|
161
|
+
)));
|
|
158
162
|
}
|
|
159
163
|
let loadingMessage;
|
|
160
164
|
if (!didCapture) {
|
|
161
165
|
loadingMessage = ( new TimeoutTimer(() => {
|
|
162
|
-
this._showMessage(
|
|
166
|
+
this._showMessage(( localizeWithPath(
|
|
167
|
+
'vs/workbench/contrib/outline/browser/outlinePane',
|
|
168
|
+
'loading',
|
|
169
|
+
"Loading document symbols for '{0}'...",
|
|
170
|
+
basename(resource)
|
|
171
|
+
)));
|
|
163
172
|
}, 100));
|
|
164
173
|
}
|
|
165
174
|
this._progressBar.infinite().show(500);
|
|
@@ -189,7 +198,12 @@ let OutlinePane = class OutlinePane extends ViewPane {
|
|
|
189
198
|
});
|
|
190
199
|
const updateTree = () => {
|
|
191
200
|
if (newOutline.isEmpty) {
|
|
192
|
-
this._showMessage(
|
|
201
|
+
this._showMessage(( localizeWithPath(
|
|
202
|
+
'vs/workbench/contrib/outline/browser/outlinePane',
|
|
203
|
+
'no-symbols',
|
|
204
|
+
"No symbols found in document '{0}'",
|
|
205
|
+
basename(resource)
|
|
206
|
+
)));
|
|
193
207
|
this._captureViewState(resource);
|
|
194
208
|
tree.setInput(undefined);
|
|
195
209
|
}
|
|
@@ -102,10 +102,20 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
104
104
|
basicMessage(tunnel) {
|
|
105
|
-
return nls.localizeWithPath(
|
|
105
|
+
return ( nls.localizeWithPath(
|
|
106
|
+
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
107
|
+
'remote.tunnelsView.automaticForward',
|
|
108
|
+
"Your application running on port {0} is available. ",
|
|
109
|
+
tunnel.tunnelRemotePort
|
|
110
|
+
));
|
|
106
111
|
}
|
|
107
112
|
linkMessage() {
|
|
108
|
-
return nls.localizeWithPath(
|
|
113
|
+
return ( nls.localizeWithPath(
|
|
114
|
+
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
115
|
+
{ 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}'] },
|
|
116
|
+
"[See all forwarded ports]({0})",
|
|
117
|
+
`command:${TunnelPanel.ID}.focus`
|
|
118
|
+
));
|
|
109
119
|
}
|
|
110
120
|
async showNotification(tunnel) {
|
|
111
121
|
if (!(await this.hostService.hadLastFocus())) {
|
|
@@ -118,7 +128,12 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
118
128
|
choices.push(this.openPreviewChoice(tunnel));
|
|
119
129
|
}
|
|
120
130
|
if ((tunnel.tunnelLocalPort !== tunnel.tunnelRemotePort) && this.tunnelService.canElevate && this.tunnelService.isPortPrivileged(tunnel.tunnelRemotePort)) {
|
|
121
|
-
message += nls.localizeWithPath(
|
|
131
|
+
message += ( nls.localizeWithPath(
|
|
132
|
+
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
133
|
+
'remote.tunnelsView.elevationMessage',
|
|
134
|
+
"You'll need to run as superuser to use port {0} locally. ",
|
|
135
|
+
tunnel.tunnelRemotePort
|
|
136
|
+
));
|
|
122
137
|
choices.unshift(this.elevateChoice(tunnel));
|
|
123
138
|
}
|
|
124
139
|
if (tunnel.privacy === TunnelPrivacyId.Private && isWeb && this.tunnelService.canChangePrivacy) {
|
|
@@ -135,7 +150,11 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
135
150
|
}
|
|
136
151
|
makePublicChoice(tunnel) {
|
|
137
152
|
return {
|
|
138
|
-
label: nls.localizeWithPath(
|
|
153
|
+
label: ( nls.localizeWithPath(
|
|
154
|
+
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
155
|
+
'remote.tunnelsView.makePublic',
|
|
156
|
+
"Make Public"
|
|
157
|
+
)),
|
|
139
158
|
run: async () => {
|
|
140
159
|
const oldTunnelDetails = mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.forwarded, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
141
160
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -166,7 +185,12 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
166
185
|
}
|
|
167
186
|
elevateChoice(tunnel) {
|
|
168
187
|
return {
|
|
169
|
-
label: nls.localizeWithPath(
|
|
188
|
+
label: ( nls.localizeWithPath(
|
|
189
|
+
'vs/workbench/contrib/remote/browser/remoteExplorer',
|
|
190
|
+
'remote.tunnelsView.elevationButton',
|
|
191
|
+
"Use Port {0} as Sudo...",
|
|
192
|
+
tunnel.tunnelRemotePort
|
|
193
|
+
)),
|
|
170
194
|
run: async () => {
|
|
171
195
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
172
196
|
const newTunnel = await this.remoteExplorerService.forward({
|
|
@@ -2,22 +2,90 @@ 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, nls.localizeWithPath(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
registerIcon('remote-explorer-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
registerIcon('remote-explorer-get-started', Codicon.star, ( nls.localizeWithPath(
|
|
6
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
7
|
+
'getStartedIcon',
|
|
8
|
+
'Getting started icon in the remote explorer view.'
|
|
9
|
+
)));
|
|
10
|
+
registerIcon('remote-explorer-documentation', Codicon.book, ( nls.localizeWithPath(
|
|
11
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
12
|
+
'documentationIcon',
|
|
13
|
+
'Documentation icon in the remote explorer view.'
|
|
14
|
+
)));
|
|
15
|
+
registerIcon('remote-explorer-feedback', Codicon.twitter, ( nls.localizeWithPath(
|
|
16
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
17
|
+
'feedbackIcon',
|
|
18
|
+
'Feedback icon in the remote explorer view.'
|
|
19
|
+
)));
|
|
20
|
+
registerIcon('remote-explorer-review-issues', Codicon.issues, ( nls.localizeWithPath(
|
|
21
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
22
|
+
'reviewIssuesIcon',
|
|
23
|
+
'Review issue icon in the remote explorer view.'
|
|
24
|
+
)));
|
|
25
|
+
registerIcon('remote-explorer-report-issues', Codicon.comment, ( nls.localizeWithPath(
|
|
26
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
27
|
+
'reportIssuesIcon',
|
|
28
|
+
'Report issue icon in the remote explorer view.'
|
|
29
|
+
)));
|
|
30
|
+
registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( nls.localizeWithPath(
|
|
31
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
32
|
+
'remoteExplorerViewIcon',
|
|
33
|
+
'View icon of the remote explorer view.'
|
|
34
|
+
)));
|
|
35
|
+
registerIcon('ports-view-icon', Codicon.plug, ( nls.localizeWithPath(
|
|
36
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
37
|
+
'portsViewIcon',
|
|
38
|
+
'View icon of the remote ports view.'
|
|
39
|
+
)));
|
|
40
|
+
registerIcon('ports-view-icon', Codicon.plug, ( nls.localizeWithPath(
|
|
41
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
42
|
+
'portIcon',
|
|
43
|
+
'Icon representing a remote port.'
|
|
44
|
+
)));
|
|
45
|
+
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( nls.localizeWithPath(
|
|
46
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
47
|
+
'privatePortIcon',
|
|
48
|
+
'Icon representing a private remote port.'
|
|
49
|
+
)));
|
|
50
|
+
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( nls.localizeWithPath(
|
|
51
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
52
|
+
'forwardPortIcon',
|
|
53
|
+
'Icon for the forward action.'
|
|
54
|
+
)));
|
|
55
|
+
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( nls.localizeWithPath(
|
|
56
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
57
|
+
'stopForwardIcon',
|
|
58
|
+
'Icon for the stop forwarding action.'
|
|
59
|
+
)));
|
|
60
|
+
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( nls.localizeWithPath(
|
|
61
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
62
|
+
'openBrowserIcon',
|
|
63
|
+
'Icon for the open browser action.'
|
|
64
|
+
)));
|
|
65
|
+
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( nls.localizeWithPath(
|
|
66
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
67
|
+
'openPreviewIcon',
|
|
68
|
+
'Icon for the open preview action.'
|
|
69
|
+
)));
|
|
70
|
+
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( nls.localizeWithPath(
|
|
71
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
72
|
+
'copyAddressIcon',
|
|
73
|
+
'Icon for the copy local address action.'
|
|
74
|
+
)));
|
|
75
|
+
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( nls.localizeWithPath(
|
|
76
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
77
|
+
'labelPortIcon',
|
|
78
|
+
'Icon for the label port action.'
|
|
79
|
+
)));
|
|
80
|
+
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( nls.localizeWithPath(
|
|
81
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
82
|
+
'forwardedPortWithoutProcessIcon',
|
|
83
|
+
'Icon for forwarded ports that don\'t have a running process.'
|
|
84
|
+
)));
|
|
85
|
+
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( nls.localizeWithPath(
|
|
86
|
+
'vs/workbench/contrib/remote/browser/remoteIcons',
|
|
87
|
+
'forwardedPortWithProcessIcon',
|
|
88
|
+
'Icon for forwarded ports that do have a running process.'
|
|
89
|
+
)));
|
|
22
90
|
|
|
23
91
|
export { copyAddressIcon, forwardPortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, labelPortIcon, openBrowserIcon, openPreviewIcon, privatePortIcon, stopForwardIcon };
|