@codingame/monaco-vscode-update-service-override 36.2.7 → 37.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +14 -14
- package/vscode/src/vs/workbench/contrib/update/browser/media/updateTitleBarEntry.css +1 -1
- package/vscode/src/vs/workbench/contrib/update/browser/media/updateTooltip.css +3 -3
- package/vscode/src/vs/workbench/contrib/update/browser/postUpdateWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/update/browser/postUpdateWidget.js +10 -4
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +5 -5
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/update/browser/update.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +42 -31
- package/vscode/src/vs/workbench/contrib/update/browser/updateTitleBarEntry.d.ts +12 -3
- package/vscode/src/vs/workbench/contrib/update/browser/updateTitleBarEntry.js +82 -37
- package/vscode/src/vs/workbench/contrib/update/browser/updateTooltip.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/update/browser/updateTooltip.js +59 -58
- package/vscode/src/vs/workbench/contrib/update/common/updateUtils.js +8 -8
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -95
- package/vscode/src/vs/platform/assignment/common/assignment.js +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -9,7 +9,7 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
9
9
|
configurationRegistry.registerConfiguration({
|
|
10
10
|
id: "update",
|
|
11
11
|
order: 15,
|
|
12
|
-
title: ( localize(
|
|
12
|
+
title: ( localize(2884, "Update")),
|
|
13
13
|
type: "object",
|
|
14
14
|
properties: {
|
|
15
15
|
"update.mode": {
|
|
@@ -18,18 +18,18 @@ configurationRegistry.registerConfiguration({
|
|
|
18
18
|
default: "default",
|
|
19
19
|
scope: ConfigurationScope.APPLICATION,
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
2885,
|
|
22
22
|
"Configure whether you receive automatic updates. The updates are fetched from a Microsoft online service."
|
|
23
23
|
)),
|
|
24
24
|
tags: ["usesOnlineServices"],
|
|
25
|
-
enumDescriptions: [( localize(
|
|
26
|
-
|
|
25
|
+
enumDescriptions: [( localize(2886, "Disable updates.")), ( localize(
|
|
26
|
+
2887,
|
|
27
27
|
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
28
28
|
)), ( localize(
|
|
29
|
-
|
|
29
|
+
2888,
|
|
30
30
|
"Check for updates only on startup. Disable automatic background update checks."
|
|
31
31
|
)), ( localize(
|
|
32
|
-
|
|
32
|
+
2889,
|
|
33
33
|
"Enable automatic update checks. Code will check for updates automatically and periodically."
|
|
34
34
|
))],
|
|
35
35
|
policy: {
|
|
@@ -40,29 +40,29 @@ configurationRegistry.registerConfiguration({
|
|
|
40
40
|
description: {
|
|
41
41
|
key: "updateMode",
|
|
42
42
|
value: ( localize(
|
|
43
|
-
|
|
43
|
+
2885,
|
|
44
44
|
"Configure whether you receive automatic updates. The updates are fetched from a Microsoft online service."
|
|
45
45
|
))
|
|
46
46
|
},
|
|
47
47
|
enumDescriptions: [{
|
|
48
48
|
key: "none",
|
|
49
|
-
value: ( localize(
|
|
49
|
+
value: ( localize(2886, "Disable updates."))
|
|
50
50
|
}, {
|
|
51
51
|
key: "manual",
|
|
52
52
|
value: ( localize(
|
|
53
|
-
|
|
53
|
+
2887,
|
|
54
54
|
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
55
55
|
))
|
|
56
56
|
}, {
|
|
57
57
|
key: "start",
|
|
58
58
|
value: ( localize(
|
|
59
|
-
|
|
59
|
+
2888,
|
|
60
60
|
"Check for updates only on startup. Disable automatic background update checks."
|
|
61
61
|
))
|
|
62
62
|
}, {
|
|
63
63
|
key: "default",
|
|
64
64
|
value: ( localize(
|
|
65
|
-
|
|
65
|
+
2889,
|
|
66
66
|
"Enable automatic update checks. Code will check for updates automatically and periodically."
|
|
67
67
|
))
|
|
68
68
|
}]
|
|
@@ -74,11 +74,11 @@ configurationRegistry.registerConfiguration({
|
|
|
74
74
|
default: "default",
|
|
75
75
|
scope: ConfigurationScope.APPLICATION,
|
|
76
76
|
description: ( localize(
|
|
77
|
-
|
|
77
|
+
2885,
|
|
78
78
|
"Configure whether you receive automatic updates. The updates are fetched from a Microsoft online service."
|
|
79
79
|
)),
|
|
80
80
|
deprecationMessage: ( localize(
|
|
81
|
-
|
|
81
|
+
2890,
|
|
82
82
|
"This setting is deprecated, please use '{0}' instead.",
|
|
83
83
|
"update.mode"
|
|
84
84
|
))
|
|
@@ -87,9 +87,9 @@ configurationRegistry.registerConfiguration({
|
|
|
87
87
|
type: "boolean",
|
|
88
88
|
default: true,
|
|
89
89
|
scope: ConfigurationScope.APPLICATION,
|
|
90
|
-
title: ( localize(
|
|
90
|
+
title: ( localize(2891, "Enable Background Updates")),
|
|
91
91
|
description: ( localize(
|
|
92
|
-
|
|
92
|
+
2892,
|
|
93
93
|
"Enable to download and install new VS Code versions in the background."
|
|
94
94
|
)),
|
|
95
95
|
included: isWindows && !isWeb
|
|
@@ -99,7 +99,7 @@ configurationRegistry.registerConfiguration({
|
|
|
99
99
|
default: true,
|
|
100
100
|
scope: ConfigurationScope.APPLICATION,
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
2893,
|
|
103
103
|
"Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
|
|
104
104
|
)),
|
|
105
105
|
tags: ["usesOnlineServices"],
|
|
@@ -116,7 +116,7 @@ configurationRegistry.registerConfiguration({
|
|
|
116
116
|
},
|
|
117
117
|
scope: ConfigurationScope.APPLICATION,
|
|
118
118
|
description: ( localize(
|
|
119
|
-
|
|
119
|
+
2894,
|
|
120
120
|
"Show a post-install update tooltip in the title bar instead of opening the release notes editor."
|
|
121
121
|
)),
|
|
122
122
|
tags: ["usesOnlineServices"]
|
|
@@ -125,7 +125,7 @@ configurationRegistry.registerConfiguration({
|
|
|
125
125
|
type: "boolean",
|
|
126
126
|
default: true,
|
|
127
127
|
scope: ConfigurationScope.APPLICATION,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(2895, "Show the update indicator in the title bar.")),
|
|
129
129
|
included: !isWeb
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -123,11 +123,11 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
123
123
|
}
|
|
124
124
|
viewInSettingsMessage(settingId, alreadyDisplayed) {
|
|
125
125
|
if (alreadyDisplayed) {
|
|
126
|
-
return localize(
|
|
126
|
+
return localize(13567, "View in Settings");
|
|
127
127
|
} else {
|
|
128
128
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
129
129
|
return localize(
|
|
130
|
-
|
|
130
|
+
13568,
|
|
131
131
|
"View \"{0}: {1}\" in Settings",
|
|
132
132
|
displayName.category,
|
|
133
133
|
displayName.label
|
|
@@ -137,7 +137,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
137
137
|
restorePreviousSettingMessage(settingId) {
|
|
138
138
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
139
139
|
return localize(
|
|
140
|
-
|
|
140
|
+
13569,
|
|
141
141
|
"Restore value of \"{0}: {1}\"",
|
|
142
142
|
displayName.category,
|
|
143
143
|
displayName.label
|
|
@@ -152,14 +152,14 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
152
152
|
if (this.isAlreadySet(setting, booleanValue)) {
|
|
153
153
|
if (booleanValue) {
|
|
154
154
|
return localize(
|
|
155
|
-
|
|
155
|
+
13570,
|
|
156
156
|
"\"{0}: {1}\" is already enabled",
|
|
157
157
|
displayName.category,
|
|
158
158
|
displayName.label
|
|
159
159
|
);
|
|
160
160
|
} else {
|
|
161
161
|
return localize(
|
|
162
|
-
|
|
162
|
+
13571,
|
|
163
163
|
"\"{0}: {1}\" is already disabled",
|
|
164
164
|
displayName.category,
|
|
165
165
|
displayName.label
|
|
@@ -167,16 +167,16 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
if (booleanValue) {
|
|
170
|
-
return localize(
|
|
170
|
+
return localize(13572, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
171
171
|
} else {
|
|
172
|
-
return localize(
|
|
172
|
+
return localize(13573, "Disable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
stringSettingMessage(setting, stringValue) {
|
|
176
176
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
177
177
|
if (this.isAlreadySet(setting, stringValue)) {
|
|
178
178
|
return localize(
|
|
179
|
-
|
|
179
|
+
13574,
|
|
180
180
|
"\"{0}: {1}\" is already set to \"{2}\"",
|
|
181
181
|
displayName.category,
|
|
182
182
|
displayName.label,
|
|
@@ -184,7 +184,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
186
|
return localize(
|
|
187
|
-
|
|
187
|
+
13575,
|
|
188
188
|
"Set \"{0}: {1}\" to \"{2}\"",
|
|
189
189
|
displayName.category,
|
|
190
190
|
displayName.label,
|
|
@@ -195,7 +195,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
195
195
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
196
196
|
if (this.isAlreadySet(setting, numberValue)) {
|
|
197
197
|
return localize(
|
|
198
|
-
|
|
198
|
+
13576,
|
|
199
199
|
"\"{0}: {1}\" is already set to {2}",
|
|
200
200
|
displayName.category,
|
|
201
201
|
displayName.label,
|
|
@@ -203,7 +203,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
205
|
return localize(
|
|
206
|
-
|
|
206
|
+
13577,
|
|
207
207
|
"Set \"{0}: {1}\" to {2}",
|
|
208
208
|
displayName.category,
|
|
209
209
|
displayName.label,
|
|
@@ -212,7 +212,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
212
212
|
}
|
|
213
213
|
renderSetting(setting, newValue) {
|
|
214
214
|
const href = this.settingToUriString(setting.key, newValue);
|
|
215
|
-
const title = ( localize(
|
|
215
|
+
const title = ( localize(13578, "View or change setting"));
|
|
216
216
|
return `<code tabindex="0"><a href="${href}" class="codesetting" title="${title}" aria-role="button"><svg width="14" height="14" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M9.1 4.4L8.6 2H7.4l-.5 2.4-.7.3-2-1.3-.9.8 1.3 2-.2.7-2.4.5v1.2l2.4.5.3.8-1.3 2 .8.8 2-1.3.8.3.4 2.3h1.2l.5-2.4.8-.3 2 1.3.8-.8-1.3-2 .3-.8 2.3-.4V7.4l-2.4-.5-.3-.8 1.3-2-.8-.8-2 1.3-.7-.2zM9.4 1l.5 2.4L12 2.1l2 2-1.4 2.1 2.4.4v2.8l-2.4.5L14 12l-2 2-2.1-1.4-.5 2.4H6.6l-.5-2.4L4 13.9l-2-2 1.4-2.1L1 9.4V6.6l2.4-.5L2.1 4l2-2 2.1 1.4.4-2.4h2.8zm.6 7c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM8 9c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z"/></svg>
|
|
217
217
|
<span class="separator"></span>
|
|
218
218
|
<span class="setting-name">${setting.key}</span>
|
|
@@ -290,8 +290,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
290
290
|
class: undefined,
|
|
291
291
|
enabled: true,
|
|
292
292
|
id: "copySettingId",
|
|
293
|
-
tooltip: ( localize(
|
|
294
|
-
label: ( localize(
|
|
293
|
+
tooltip: ( localize(13579, "Copy Setting ID")),
|
|
294
|
+
label: ( localize(13579, "Copy Setting ID")),
|
|
295
295
|
run: () => {
|
|
296
296
|
this._clipboardService.writeText(settingId);
|
|
297
297
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
gap: 12px;
|
|
10
10
|
padding: 6px 6px;
|
|
11
|
-
|
|
12
|
-
max-width:
|
|
11
|
+
width: 300px;
|
|
12
|
+
max-width: calc(100% - var(--vscode-spacing-size120));
|
|
13
13
|
color: var(--vscode-descriptionForeground);
|
|
14
14
|
font-size: var(--vscode-bodyFontSize-small);
|
|
15
15
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.update-tooltip .release-notes-button {
|
|
98
98
|
background-color: var(--vscode-button-secondaryBackground);
|
|
99
99
|
color: var(--vscode-button-secondaryForeground);
|
|
100
|
-
border: 1px solid var(--vscode-button-border, transparent);
|
|
100
|
+
border: 1px solid var(--vscode-button-secondaryBorder, var(--vscode-button-border, transparent));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.update-tooltip .release-notes-button:hover {
|
|
@@ -4,6 +4,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
4
4
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
5
5
|
import { ILayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service";
|
|
6
6
|
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
7
|
+
import { IMeteredConnectionService } from "@codingame/monaco-vscode-api/vscode/vs/platform/meteredConnection/common/meteredConnection.service";
|
|
7
8
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
8
9
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
9
10
|
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
@@ -21,13 +22,14 @@ export declare class PostUpdateWidgetContribution extends Disposable implements
|
|
|
21
22
|
private readonly hoverService;
|
|
22
23
|
private readonly layoutService;
|
|
23
24
|
private readonly markdownRendererService;
|
|
25
|
+
private readonly meteredConnectionService;
|
|
24
26
|
private readonly openerService;
|
|
25
27
|
private readonly productService;
|
|
26
28
|
private readonly requestService;
|
|
27
29
|
private readonly storageService;
|
|
28
30
|
private readonly telemetryService;
|
|
29
31
|
private static idCounter;
|
|
30
|
-
constructor(commandService: ICommandService, configurationService: IConfigurationService, hostService: IHostService, hoverService: IHoverService, layoutService: ILayoutService, markdownRendererService: IMarkdownRendererService, openerService: IOpenerService, productService: IProductService, requestService: IRequestService, storageService: IStorageService, telemetryService: ITelemetryService);
|
|
32
|
+
constructor(commandService: ICommandService, configurationService: IConfigurationService, hostService: IHostService, hoverService: IHoverService, layoutService: ILayoutService, markdownRendererService: IMarkdownRendererService, meteredConnectionService: IMeteredConnectionService, openerService: IOpenerService, productService: IProductService, requestService: IRequestService, storageService: IStorageService, telemetryService: ITelemetryService);
|
|
31
33
|
private tryShowOnStartup;
|
|
32
34
|
private showUpdateInfo;
|
|
33
35
|
private getUpdateInfo;
|
|
@@ -14,6 +14,7 @@ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
14
14
|
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
15
15
|
import { openLinkFromMarkdown } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer';
|
|
16
16
|
import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
|
|
17
|
+
import { IMeteredConnectionService } from '@codingame/monaco-vscode-api/vscode/vs/platform/meteredConnection/common/meteredConnection.service';
|
|
17
18
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
18
19
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
19
20
|
import { asTextOrError } from '@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request';
|
|
@@ -47,6 +48,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
47
48
|
hoverService,
|
|
48
49
|
layoutService,
|
|
49
50
|
markdownRendererService,
|
|
51
|
+
meteredConnectionService,
|
|
50
52
|
openerService,
|
|
51
53
|
productService,
|
|
52
54
|
requestService,
|
|
@@ -60,6 +62,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
60
62
|
this.hoverService = hoverService;
|
|
61
63
|
this.layoutService = layoutService;
|
|
62
64
|
this.markdownRendererService = markdownRendererService;
|
|
65
|
+
this.meteredConnectionService = meteredConnectionService;
|
|
63
66
|
this.openerService = openerService;
|
|
64
67
|
this.productService = productService;
|
|
65
68
|
this.requestService = requestService;
|
|
@@ -78,6 +81,9 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
78
81
|
if (!(await this.hostService.hadLastFocus())) {
|
|
79
82
|
return;
|
|
80
83
|
}
|
|
84
|
+
if (this.meteredConnectionService.isConnectionMetered) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
81
87
|
if (!this.detectVersionChange()) {
|
|
82
88
|
return;
|
|
83
89
|
}
|
|
@@ -137,7 +143,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
137
143
|
info = {
|
|
138
144
|
...info,
|
|
139
145
|
buttons: [{
|
|
140
|
-
label: ( localize(
|
|
146
|
+
label: ( localize(18353, "Release Notes")),
|
|
141
147
|
commandId: ShowCurrentReleaseNotesActionId,
|
|
142
148
|
args: [this.productService.version],
|
|
143
149
|
style: "secondary"
|
|
@@ -166,7 +172,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
166
172
|
banner.style.setProperty("background-image", `url(${JSON.stringify(safeBannerUrl)})`);
|
|
167
173
|
}
|
|
168
174
|
const closeButton = append(container, $("button.banner-close"));
|
|
169
|
-
closeButton.setAttribute("aria-label", ( localize(
|
|
175
|
+
closeButton.setAttribute("aria-label", ( localize(18354, "Close")));
|
|
170
176
|
const closeIcon = append(closeButton, $(ThemeIcon.asCSSSelector(Codicon.close)));
|
|
171
177
|
closeIcon.setAttribute("aria-hidden", "true");
|
|
172
178
|
disposables.add(addDisposableListener(closeButton, "click", () => {
|
|
@@ -179,7 +185,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
179
185
|
}
|
|
180
186
|
const titleEl = append(body, $(".title"));
|
|
181
187
|
titleEl.id = titleId;
|
|
182
|
-
titleEl.textContent = title ?? ( localize(
|
|
188
|
+
titleEl.textContent = title ?? ( localize(18355, "New in {0}", this.productService.version));
|
|
183
189
|
if (features?.length) {
|
|
184
190
|
const list = append(body, $(".features"));
|
|
185
191
|
list.setAttribute("role", "list");
|
|
@@ -281,7 +287,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
281
287
|
return false;
|
|
282
288
|
}
|
|
283
289
|
};
|
|
284
|
-
PostUpdateWidgetContribution = PostUpdateWidgetContribution_1 = ( __decorate([( __param(0, ICommandService)), ( __param(1, IConfigurationService)), ( __param(2, IHostService)), ( __param(3, IHoverService)), ( __param(4, ILayoutService)), ( __param(5, IMarkdownRendererService)), ( __param(6,
|
|
290
|
+
PostUpdateWidgetContribution = PostUpdateWidgetContribution_1 = ( __decorate([( __param(0, ICommandService)), ( __param(1, IConfigurationService)), ( __param(2, IHostService)), ( __param(3, IHoverService)), ( __param(4, ILayoutService)), ( __param(5, IMarkdownRendererService)), ( __param(6, IMeteredConnectionService)), ( __param(7, IOpenerService)), ( __param(8, IProductService)), ( __param(9, IRequestService)), ( __param(10, IStorageService)), ( __param(11, ITelemetryService))], PostUpdateWidgetContribution));
|
|
285
291
|
function sanitizeBannerImageUrl(value) {
|
|
286
292
|
if (!value) {
|
|
287
293
|
return undefined;
|
|
@@ -104,7 +104,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
104
104
|
base
|
|
105
105
|
};
|
|
106
106
|
const html = await this.renderBody(this._lastMeta);
|
|
107
|
-
const title = ( localize(
|
|
107
|
+
const title = ( localize(18356, "Release Notes: {0}", version));
|
|
108
108
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
109
109
|
if (this._currentReleaseNotes) {
|
|
110
110
|
this._currentReleaseNotes.setWebviewTitle(title);
|
|
@@ -160,7 +160,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
160
160
|
const versionLabel = match[1].replace(/\./g, "_");
|
|
161
161
|
const baseUrl = "https://code.visualstudio.com/raw";
|
|
162
162
|
const url = `${baseUrl}/v${versionLabel}.md`;
|
|
163
|
-
const unassigned = ( localize(
|
|
163
|
+
const unassigned = ( localize(18357, "unassigned"));
|
|
164
164
|
const escapeMdHtml = text => {
|
|
165
165
|
return escape(text).replace(/\\/g, "\\\\");
|
|
166
166
|
};
|
|
@@ -168,9 +168,9 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
168
168
|
const kb = (match, kb) => {
|
|
169
169
|
const keybinding = this._keybindingService.lookupKeybinding(kb);
|
|
170
170
|
if (!keybinding) {
|
|
171
|
-
return
|
|
171
|
+
return kb;
|
|
172
172
|
}
|
|
173
|
-
return keybinding.getLabel() ||
|
|
173
|
+
return keybinding.getLabel() || kb;
|
|
174
174
|
};
|
|
175
175
|
const kbstyle = (match, kb) => {
|
|
176
176
|
const keybinding = KeybindingParser.parseKeybinding(kb);
|
|
@@ -542,7 +542,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
542
542
|
|
|
543
543
|
const label = document.createElement('label');
|
|
544
544
|
label.htmlFor = 'showReleaseNotes';
|
|
545
|
-
label.textContent = '${( localize(
|
|
545
|
+
label.textContent = '${( localize(18358, "Show release notes after an update"))}';
|
|
546
546
|
container.appendChild(label);
|
|
547
547
|
|
|
548
548
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -39,8 +39,8 @@ class ShowReleaseNotesAction extends Action2 {
|
|
|
39
39
|
super({
|
|
40
40
|
id: ShowCurrentReleaseNotesActionId,
|
|
41
41
|
title: {
|
|
42
|
-
...( localize2(
|
|
43
|
-
mnemonicTitle: ( localize(
|
|
42
|
+
...( localize2(18359, "Show Release Notes")),
|
|
43
|
+
mnemonicTitle: ( localize(18360, "Show &&Release Notes"))
|
|
44
44
|
},
|
|
45
45
|
category: {
|
|
46
46
|
value: product.nameShort,
|
|
@@ -66,7 +66,7 @@ class ShowReleaseNotesAction extends Action2 {
|
|
|
66
66
|
await openerService.open(( URI.parse(productService.releaseNotesUrl)));
|
|
67
67
|
} else {
|
|
68
68
|
throw ( new Error(( localize(
|
|
69
|
-
|
|
69
|
+
18361,
|
|
70
70
|
"This version of {0} does not have release notes online",
|
|
71
71
|
productService.nameLong
|
|
72
72
|
))));
|
|
@@ -79,10 +79,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
79
79
|
super({
|
|
80
80
|
id: ShowCurrentReleaseNotesFromCurrentFileActionId,
|
|
81
81
|
title: {
|
|
82
|
-
...( localize2(
|
|
83
|
-
mnemonicTitle: ( localize(
|
|
82
|
+
...( localize2(18362, "Open Current File as Release Notes")),
|
|
83
|
+
mnemonicTitle: ( localize(18360, "Show &&Release Notes"))
|
|
84
84
|
},
|
|
85
|
-
category: ( localize2(
|
|
85
|
+
category: ( localize2(18363, "Developer")),
|
|
86
86
|
f1: true
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -92,7 +92,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
92
92
|
try {
|
|
93
93
|
await showReleaseNotesInEditor(instantiationService, productService.version, true);
|
|
94
94
|
} catch (err) {
|
|
95
|
-
throw ( new Error(( localize(
|
|
95
|
+
throw ( new Error(( localize(18364, "Cannot open the current file as Release Notes"))));
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -104,7 +104,7 @@ class CheckForUpdateAction extends Action2 {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: "update.checkForUpdate",
|
|
107
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(18365, "Check for Updates...")),
|
|
108
108
|
category: {
|
|
109
109
|
value: product.nameShort,
|
|
110
110
|
original: product.nameShort
|
|
@@ -122,7 +122,7 @@ class DownloadUpdateAction extends Action2 {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: "update.downloadUpdate",
|
|
125
|
-
title: ( localize2(
|
|
125
|
+
title: ( localize2(18366, "Download Update")),
|
|
126
126
|
category: {
|
|
127
127
|
value: product.nameShort,
|
|
128
128
|
original: product.nameShort
|
|
@@ -139,7 +139,7 @@ class InstallUpdateAction extends Action2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: "update.installUpdate",
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(18367, "Install Update")),
|
|
143
143
|
category: {
|
|
144
144
|
value: product.nameShort,
|
|
145
145
|
original: product.nameShort
|
|
@@ -156,7 +156,7 @@ class RestartToUpdateAction extends Action2 {
|
|
|
156
156
|
constructor() {
|
|
157
157
|
super({
|
|
158
158
|
id: "update.restartToUpdate",
|
|
159
|
-
title: ( localize2(
|
|
159
|
+
title: ( localize2(18368, "Restart to Update")),
|
|
160
160
|
category: {
|
|
161
161
|
value: product.nameShort,
|
|
162
162
|
original: product.nameShort
|
|
@@ -179,7 +179,7 @@ class DownloadAction extends Action2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: DownloadAction.ID,
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(18369, "Download {0}", product.nameLong)),
|
|
183
183
|
precondition: IsWebContext,
|
|
184
184
|
f1: true,
|
|
185
185
|
menu: [{
|
|
@@ -208,7 +208,7 @@ if (isWindows) {
|
|
|
208
208
|
constructor() {
|
|
209
209
|
super({
|
|
210
210
|
id: "_update.applyupdate",
|
|
211
|
-
title: ( localize2(
|
|
211
|
+
title: ( localize2(18370, "Apply Update from File...")),
|
|
212
212
|
category: Categories.Developer,
|
|
213
213
|
f1: true,
|
|
214
214
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
@@ -218,13 +218,13 @@ if (isWindows) {
|
|
|
218
218
|
const updateService = accessor.get(IUpdateService);
|
|
219
219
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
220
220
|
const updatePath = await fileDialogService.showOpenDialog({
|
|
221
|
-
title: ( localize(
|
|
221
|
+
title: ( localize(18371, "Apply Update from File")),
|
|
222
222
|
filters: [{
|
|
223
223
|
name: "Setup",
|
|
224
224
|
extensions: ["exe"]
|
|
225
225
|
}],
|
|
226
226
|
canSelectFiles: true,
|
|
227
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
227
|
+
openLabel: mnemonicButtonLabel(( localize(18372, "&&Update")))
|
|
228
228
|
});
|
|
229
229
|
if (!updatePath || !updatePath[0]) {
|
|
230
230
|
return;
|
|
@@ -238,7 +238,7 @@ registerAction2(class ShowUpdateInfoAction extends Action2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: "update.showUpdateInfo",
|
|
241
|
-
title: ( localize2(
|
|
241
|
+
title: ( localize2(18373, "Show Update Info")),
|
|
242
242
|
category: Categories.Developer,
|
|
243
243
|
f1: true,
|
|
244
244
|
precondition: ( IsWebContext.negate())
|
|
@@ -249,7 +249,7 @@ registerAction2(class ShowUpdateInfoAction extends Action2 {
|
|
|
249
249
|
const quickInputService = accessor.get(IQuickInputService);
|
|
250
250
|
const markdown = await quickInputService.input({
|
|
251
251
|
prompt: ( localize(
|
|
252
|
-
|
|
252
|
+
18374,
|
|
253
253
|
"Enter markdown to render, or JSON with markdown/buttons (leave empty to load from URL)"
|
|
254
254
|
))
|
|
255
255
|
});
|
|
@@ -34,6 +34,7 @@ export declare class UpdateContribution extends Disposable implements IWorkbench
|
|
|
34
34
|
private readonly dialogService;
|
|
35
35
|
private readonly updateService;
|
|
36
36
|
private readonly activityService;
|
|
37
|
+
private readonly contextKeyService;
|
|
37
38
|
private readonly productService;
|
|
38
39
|
private readonly hostService;
|
|
39
40
|
private state;
|
|
@@ -42,6 +43,7 @@ export declare class UpdateContribution extends Disposable implements IWorkbench
|
|
|
42
43
|
private majorMinorUpdateAvailableContextKey;
|
|
43
44
|
constructor(storageService: IStorageService, instantiationService: IInstantiationService, dialogService: IDialogService, updateService: IUpdateService, activityService: IActivityService, contextKeyService: IContextKeyService, productService: IProductService, hostService: IHostService);
|
|
44
45
|
private onUpdateStateChange;
|
|
46
|
+
private updateBadge;
|
|
45
47
|
private registerGlobalActivityActions;
|
|
46
48
|
}
|
|
47
49
|
export declare class SwitchProductQualityContribution extends Disposable implements IWorkbenchContribution {
|