@codingame/monaco-vscode-update-service-override 14.0.5 → 15.0.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 +11 -11
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +14 -14
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +5 -5
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +40 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "
|
|
19
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "
|
|
20
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "
|
|
21
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "
|
|
22
|
-
"@codingame/monaco-vscode-api": "
|
|
23
|
-
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "15.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "15.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "15.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "15.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "15.0.0"
|
|
24
24
|
},
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"module": "index.js",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"default": "./index.js"
|
|
31
31
|
},
|
|
32
32
|
"./vscode/*": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"types": "./vscode/src/*.d.ts",
|
|
34
|
+
"default": "./vscode/src/*.js"
|
|
35
35
|
},
|
|
36
36
|
"./*": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"types": "./*.d.ts",
|
|
38
|
+
"default": "./*.js"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"typesVersions": {
|
|
@@ -8,7 +8,7 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
8
8
|
configurationRegistry.registerConfiguration({
|
|
9
9
|
id: 'update',
|
|
10
10
|
order: 15,
|
|
11
|
-
title: ( localize(
|
|
11
|
+
title: ( localize(2281, "Update")),
|
|
12
12
|
type: 'object',
|
|
13
13
|
properties: {
|
|
14
14
|
'update.mode': {
|
|
@@ -17,22 +17,22 @@ configurationRegistry.registerConfiguration({
|
|
|
17
17
|
default: 'default',
|
|
18
18
|
scope: ConfigurationScope.APPLICATION,
|
|
19
19
|
description: ( localize(
|
|
20
|
-
|
|
20
|
+
2282,
|
|
21
21
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
22
22
|
)),
|
|
23
23
|
tags: ['usesOnlineServices'],
|
|
24
24
|
enumDescriptions: [
|
|
25
|
-
( localize(
|
|
25
|
+
( localize(2283, "Disable updates.")),
|
|
26
26
|
( localize(
|
|
27
|
-
|
|
27
|
+
2284,
|
|
28
28
|
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
29
29
|
)),
|
|
30
30
|
( localize(
|
|
31
|
-
|
|
31
|
+
2285,
|
|
32
32
|
"Check for updates only on startup. Disable automatic background update checks."
|
|
33
33
|
)),
|
|
34
34
|
( localize(
|
|
35
|
-
|
|
35
|
+
2286,
|
|
36
36
|
"Enable automatic update checks. Code will check for updates automatically and periodically."
|
|
37
37
|
))
|
|
38
38
|
],
|
|
@@ -46,11 +46,11 @@ configurationRegistry.registerConfiguration({
|
|
|
46
46
|
default: 'default',
|
|
47
47
|
scope: ConfigurationScope.APPLICATION,
|
|
48
48
|
description: ( localize(
|
|
49
|
-
|
|
49
|
+
2282,
|
|
50
50
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
51
51
|
)),
|
|
52
52
|
deprecationMessage: ( localize(
|
|
53
|
-
|
|
53
|
+
2287,
|
|
54
54
|
"This setting is deprecated, please use '{0}' instead.",
|
|
55
55
|
'update.mode'
|
|
56
56
|
))
|
|
@@ -59,9 +59,9 @@ configurationRegistry.registerConfiguration({
|
|
|
59
59
|
type: 'boolean',
|
|
60
60
|
default: true,
|
|
61
61
|
scope: ConfigurationScope.APPLICATION,
|
|
62
|
-
title: ( localize(
|
|
62
|
+
title: ( localize(2288, "Enable Background Updates on Windows")),
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
2289,
|
|
65
65
|
"Enable to download and install new VS Code versions in the background on Windows."
|
|
66
66
|
)),
|
|
67
67
|
included: isWindows && !isWeb
|
|
@@ -71,7 +71,7 @@ configurationRegistry.registerConfiguration({
|
|
|
71
71
|
default: true,
|
|
72
72
|
scope: ConfigurationScope.APPLICATION,
|
|
73
73
|
description: ( localize(
|
|
74
|
-
|
|
74
|
+
2290,
|
|
75
75
|
"Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
|
|
76
76
|
)),
|
|
77
77
|
tags: ['usesOnlineServices']
|
|
@@ -109,12 +109,12 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
109
109
|
}
|
|
110
110
|
viewInSettingsMessage(settingId, alreadyDisplayed) {
|
|
111
111
|
if (alreadyDisplayed) {
|
|
112
|
-
return localize(
|
|
112
|
+
return localize(7277, "View in Settings");
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
116
116
|
return localize(
|
|
117
|
-
|
|
117
|
+
7278,
|
|
118
118
|
"View \"{0}: {1}\" in Settings",
|
|
119
119
|
displayName.category,
|
|
120
120
|
displayName.label
|
|
@@ -124,7 +124,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
124
124
|
restorePreviousSettingMessage(settingId) {
|
|
125
125
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
126
126
|
return localize(
|
|
127
|
-
|
|
127
|
+
7279,
|
|
128
128
|
"Restore value of \"{0}: {1}\"",
|
|
129
129
|
displayName.category,
|
|
130
130
|
displayName.label
|
|
@@ -139,7 +139,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
139
139
|
if (this.isAlreadySet(setting, booleanValue)) {
|
|
140
140
|
if (booleanValue) {
|
|
141
141
|
return localize(
|
|
142
|
-
|
|
142
|
+
7280,
|
|
143
143
|
"\"{0}: {1}\" is already enabled",
|
|
144
144
|
displayName.category,
|
|
145
145
|
displayName.label
|
|
@@ -147,7 +147,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
149
|
return localize(
|
|
150
|
-
|
|
150
|
+
7281,
|
|
151
151
|
"\"{0}: {1}\" is already disabled",
|
|
152
152
|
displayName.category,
|
|
153
153
|
displayName.label
|
|
@@ -155,17 +155,17 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
if (booleanValue) {
|
|
158
|
-
return localize(
|
|
158
|
+
return localize(7282, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
return localize(
|
|
161
|
+
return localize(7283, "Disable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
stringSettingMessage(setting, stringValue) {
|
|
165
165
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
166
166
|
if (this.isAlreadySet(setting, stringValue)) {
|
|
167
167
|
return localize(
|
|
168
|
-
|
|
168
|
+
7284,
|
|
169
169
|
"\"{0}: {1}\" is already set to \"{2}\"",
|
|
170
170
|
displayName.category,
|
|
171
171
|
displayName.label,
|
|
@@ -173,7 +173,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
return localize(
|
|
176
|
-
|
|
176
|
+
7285,
|
|
177
177
|
"Set \"{0}: {1}\" to \"{2}\"",
|
|
178
178
|
displayName.category,
|
|
179
179
|
displayName.label,
|
|
@@ -184,7 +184,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
184
184
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
185
185
|
if (this.isAlreadySet(setting, numberValue)) {
|
|
186
186
|
return localize(
|
|
187
|
-
|
|
187
|
+
7286,
|
|
188
188
|
"\"{0}: {1}\" is already set to {2}",
|
|
189
189
|
displayName.category,
|
|
190
190
|
displayName.label,
|
|
@@ -192,7 +192,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
return localize(
|
|
195
|
-
|
|
195
|
+
7287,
|
|
196
196
|
"Set \"{0}: {1}\" to {2}",
|
|
197
197
|
displayName.category,
|
|
198
198
|
displayName.label,
|
|
@@ -201,7 +201,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
201
201
|
}
|
|
202
202
|
renderSetting(setting, newValue) {
|
|
203
203
|
const href = this.settingToUriString(setting.key, newValue);
|
|
204
|
-
const title = ( localize(
|
|
204
|
+
const title = ( localize(7288, "View or change setting"));
|
|
205
205
|
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>
|
|
206
206
|
<span class="separator"></span>
|
|
207
207
|
<span class="setting-name">${setting.key}</span>
|
|
@@ -280,8 +280,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
280
280
|
class: undefined,
|
|
281
281
|
enabled: true,
|
|
282
282
|
id: 'copySettingId',
|
|
283
|
-
tooltip: ( localize(
|
|
284
|
-
label: ( localize(
|
|
283
|
+
tooltip: ( localize(7289, "Copy Setting ID")),
|
|
284
|
+
label: ( localize(7289, "Copy Setting ID")),
|
|
285
285
|
run: () => {
|
|
286
286
|
this._clipboardService.writeText(settingId);
|
|
287
287
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
1
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
2
2
|
import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
|
|
3
3
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
4
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
@@ -10,7 +10,7 @@ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
10
10
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
11
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
12
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
-
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService";
|
|
13
|
+
import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service";
|
|
14
14
|
export declare class ReleaseNotesManager {
|
|
15
15
|
private readonly _environmentService;
|
|
16
16
|
private readonly _keybindingService;
|
|
@@ -10,7 +10,7 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
10
10
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
11
11
|
import { TokenizationRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
12
12
|
import { generateTokensCSSForColorMap } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/supports/tokenization';
|
|
13
|
-
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
13
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
14
14
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
15
|
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
16
16
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
@@ -31,7 +31,7 @@ import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
31
31
|
import { SimpleSettingRenderer } from '../../markdown/browser/markdownSettingRenderer.js';
|
|
32
32
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
33
33
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
34
|
-
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
34
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service';
|
|
35
35
|
import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
36
36
|
import { asWebviewUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
|
|
37
37
|
|
|
@@ -83,7 +83,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
83
83
|
const base = await this.getBase(useCurrentFile);
|
|
84
84
|
this._lastMeta = { text: releaseNoteText, base };
|
|
85
85
|
const html = await this.renderBody(this._lastMeta);
|
|
86
|
-
const title = ( localize(
|
|
86
|
+
const title = ( localize(10733, "Release Notes: {0}", version));
|
|
87
87
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
88
88
|
if (this._currentReleaseNotes) {
|
|
89
89
|
this._currentReleaseNotes.setName(title);
|
|
@@ -132,7 +132,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
132
132
|
const versionLabel = match[1].replace(/\./g, '_');
|
|
133
133
|
const baseUrl = 'https://code.visualstudio.com/raw';
|
|
134
134
|
const url = `${baseUrl}/v${versionLabel}.md`;
|
|
135
|
-
const unassigned = ( localize(
|
|
135
|
+
const unassigned = ( localize(10734, "unassigned"));
|
|
136
136
|
const escapeMdHtml = (text) => {
|
|
137
137
|
return escape(text).replace(/\\/g, '\\\\');
|
|
138
138
|
};
|
|
@@ -343,7 +343,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
343
343
|
|
|
344
344
|
const label = document.createElement('label');
|
|
345
345
|
label.htmlFor = 'showReleaseNotes';
|
|
346
|
-
label.textContent = '${( localize(
|
|
346
|
+
label.textContent = '${( localize(10735, "Show release notes after an update"))}';
|
|
347
347
|
container.appendChild(label);
|
|
348
348
|
|
|
349
349
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -30,8 +30,8 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
30
30
|
super({
|
|
31
31
|
id: ShowCurrentReleaseNotesActionId,
|
|
32
32
|
title: {
|
|
33
|
-
...( localize2(
|
|
34
|
-
mnemonicTitle: ( localize(
|
|
33
|
+
...( localize2(10736, "Show Release Notes")),
|
|
34
|
+
mnemonicTitle: ( localize(10737, "Show &&Release Notes")),
|
|
35
35
|
},
|
|
36
36
|
category: { value: product.nameShort, original: product.nameShort },
|
|
37
37
|
f1: true,
|
|
@@ -57,7 +57,7 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
59
|
throw ( new Error(( localize(
|
|
60
|
-
|
|
60
|
+
10738,
|
|
61
61
|
"This version of {0} does not have release notes online",
|
|
62
62
|
productService.nameLong
|
|
63
63
|
))));
|
|
@@ -70,10 +70,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
70
70
|
super({
|
|
71
71
|
id: ShowCurrentReleaseNotesFromCurrentFileActionId,
|
|
72
72
|
title: {
|
|
73
|
-
...( localize2(
|
|
74
|
-
mnemonicTitle: ( localize(
|
|
73
|
+
...( localize2(10739, "Open Current File as Release Notes")),
|
|
74
|
+
mnemonicTitle: ( localize(10737, "Show &&Release Notes")),
|
|
75
75
|
},
|
|
76
|
-
category: ( localize2(
|
|
76
|
+
category: ( localize2(10740, "Developer")),
|
|
77
77
|
f1: true,
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -84,7 +84,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
84
84
|
await showReleaseNotesInEditor(instantiationService, productService.version, true);
|
|
85
85
|
}
|
|
86
86
|
catch (err) {
|
|
87
|
-
throw ( new Error(( localize(
|
|
87
|
+
throw ( new Error(( localize(10741, "Cannot open the current file as Release Notes"))));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ class CheckForUpdateAction extends Action2 {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: 'update.checkForUpdate',
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(10742, 'Check for Updates...')),
|
|
98
98
|
category: { value: product.nameShort, original: product.nameShort },
|
|
99
99
|
f1: true,
|
|
100
100
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle)),
|
|
@@ -109,7 +109,7 @@ class DownloadUpdateAction extends Action2 {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'update.downloadUpdate',
|
|
112
|
-
title: ( localize2(
|
|
112
|
+
title: ( localize2(10743, 'Download Update')),
|
|
113
113
|
category: { value: product.nameShort, original: product.nameShort },
|
|
114
114
|
f1: true,
|
|
115
115
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
@@ -123,7 +123,7 @@ class InstallUpdateAction extends Action2 {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: 'update.installUpdate',
|
|
126
|
-
title: ( localize2(
|
|
126
|
+
title: ( localize2(10744, 'Install Update')),
|
|
127
127
|
category: { value: product.nameShort, original: product.nameShort },
|
|
128
128
|
f1: true,
|
|
129
129
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
@@ -137,7 +137,7 @@ class RestartToUpdateAction extends Action2 {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'update.restartToUpdate',
|
|
140
|
-
title: ( localize2(
|
|
140
|
+
title: ( localize2(10745, 'Restart to Update')),
|
|
141
141
|
category: { value: product.nameShort, original: product.nameShort },
|
|
142
142
|
f1: true,
|
|
143
143
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
@@ -152,7 +152,7 @@ class DownloadAction extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: DownloadAction.ID,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(10746, "Download {0}", product.nameLong)),
|
|
156
156
|
precondition: ( ContextKeyExpr.and(IsWebContext, DOWNLOAD_URL)),
|
|
157
157
|
f1: true,
|
|
158
158
|
menu: [{
|
|
@@ -179,7 +179,7 @@ if (isWindows) {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: '_update.applyupdate',
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(10747, 'Apply Update...')),
|
|
183
183
|
category: Categories.Developer,
|
|
184
184
|
f1: true,
|
|
185
185
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
@@ -189,10 +189,10 @@ if (isWindows) {
|
|
|
189
189
|
const updateService = accessor.get(IUpdateService);
|
|
190
190
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
191
191
|
const updatePath = await fileDialogService.showOpenDialog({
|
|
192
|
-
title: ( localize(
|
|
192
|
+
title: ( localize(10748, "Apply Update")),
|
|
193
193
|
filters: [{ name: 'Setup', extensions: ['exe'] }],
|
|
194
194
|
canSelectFiles: true,
|
|
195
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
195
|
+
openLabel: mnemonicButtonLabel(( localize(10749, "&&Update")))
|
|
196
196
|
});
|
|
197
197
|
if (!updatePath || !updatePath[0]) {
|
|
198
198
|
return;
|
|
@@ -54,7 +54,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
|
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
throw ( new Error(( localize(
|
|
57
|
-
|
|
57
|
+
10750,
|
|
58
58
|
"This version of {0} does not have release notes online",
|
|
59
59
|
productService.nameLong
|
|
60
60
|
))));
|
|
@@ -115,12 +115,12 @@ let ProductContribution = class ProductContribution {
|
|
|
115
115
|
showReleaseNotesInEditor(instantiationService, productService.version, false)
|
|
116
116
|
.then(undefined, () => {
|
|
117
117
|
notificationService.prompt(Severity.Info, ( localize(
|
|
118
|
-
|
|
118
|
+
10751,
|
|
119
119
|
"Welcome to {0} v{1}! Would you like to read the Release Notes?",
|
|
120
120
|
productService.nameLong,
|
|
121
121
|
productService.version
|
|
122
122
|
)), [{
|
|
123
|
-
label: ( localize(
|
|
123
|
+
label: ( localize(10752, "Release Notes")),
|
|
124
124
|
run: () => {
|
|
125
125
|
const uri = ( URI.parse(releaseNotesUrl));
|
|
126
126
|
openerService.open(uri);
|
|
@@ -179,13 +179,13 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
179
179
|
this.notificationService.notify({
|
|
180
180
|
severity: Severity.Info,
|
|
181
181
|
message: ( localize(
|
|
182
|
-
|
|
182
|
+
10753,
|
|
183
183
|
"Updates are disabled because you are running the user-scope installation of {0} as Administrator.",
|
|
184
184
|
this.productService.nameLong
|
|
185
185
|
)),
|
|
186
186
|
actions: {
|
|
187
187
|
primary: [
|
|
188
|
-
( new Action('', ( localize(
|
|
188
|
+
( new Action('', ( localize(10754, "Learn More")), undefined, undefined, () => {
|
|
189
189
|
this.openerService.open('https://aka.ms/vscode-windows-setup');
|
|
190
190
|
}))
|
|
191
191
|
]
|
|
@@ -221,16 +221,16 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
221
221
|
}
|
|
222
222
|
let badge = undefined;
|
|
223
223
|
if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
|
|
224
|
-
badge = ( new NumberBadge(1, () => ( localize(
|
|
224
|
+
badge = ( new NumberBadge(1, () => ( localize(10755, "New {0} update available.", this.productService.nameShort))));
|
|
225
225
|
}
|
|
226
226
|
else if (state.type === StateType.CheckingForUpdates) {
|
|
227
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
227
|
+
badge = ( new ProgressBadge(() => ( localize(10756, "Checking for {0} updates...", this.productService.nameShort))));
|
|
228
228
|
}
|
|
229
229
|
else if (state.type === StateType.Downloading) {
|
|
230
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
230
|
+
badge = ( new ProgressBadge(() => ( localize(10757, "Downloading {0} update...", this.productService.nameShort))));
|
|
231
231
|
}
|
|
232
232
|
else if (state.type === StateType.Updating) {
|
|
233
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
233
|
+
badge = ( new ProgressBadge(() => ( localize(10758, "Updating {0}...", this.productService.nameShort))));
|
|
234
234
|
}
|
|
235
235
|
this.badgeDisposable.clear();
|
|
236
236
|
if (badge) {
|
|
@@ -246,11 +246,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
246
246
|
this.notificationService.notify({
|
|
247
247
|
severity: Severity.Error,
|
|
248
248
|
message: error,
|
|
249
|
-
source: ( localize(
|
|
249
|
+
source: ( localize(10759, "Update Service")),
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
onUpdateNotAvailable() {
|
|
253
|
-
this.dialogService.info(( localize(
|
|
253
|
+
this.dialogService.info(( localize(10760, "There are currently no updates available.")));
|
|
254
254
|
}
|
|
255
255
|
onUpdateAvailable(update) {
|
|
256
256
|
if (!this.shouldShowNotification()) {
|
|
@@ -260,14 +260,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
260
260
|
if (!productVersion) {
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
|
-
this.notificationService.prompt(Severity.Info, ( localize(
|
|
264
|
-
label: ( localize(
|
|
263
|
+
this.notificationService.prompt(Severity.Info, ( localize(10761, "There is an available update.")), [{
|
|
264
|
+
label: ( localize(10762, "Download Update")),
|
|
265
265
|
run: () => this.updateService.downloadUpdate()
|
|
266
266
|
}, {
|
|
267
|
-
label: ( localize(
|
|
267
|
+
label: ( localize(10763, "Later")),
|
|
268
268
|
run: () => { }
|
|
269
269
|
}, {
|
|
270
|
-
label: ( localize(
|
|
270
|
+
label: ( localize(10752, "Release Notes")),
|
|
271
271
|
run: () => {
|
|
272
272
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
273
273
|
}
|
|
@@ -288,18 +288,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
291
|
-
|
|
291
|
+
10764,
|
|
292
292
|
"There's an update available: {0} {1}",
|
|
293
293
|
this.productService.nameLong,
|
|
294
294
|
productVersion
|
|
295
295
|
)), [{
|
|
296
|
-
label: ( localize(
|
|
296
|
+
label: ( localize(10765, "Install Update")),
|
|
297
297
|
run: () => this.updateService.applyUpdate()
|
|
298
298
|
}, {
|
|
299
|
-
label: ( localize(
|
|
299
|
+
label: ( localize(10763, "Later")),
|
|
300
300
|
run: () => { }
|
|
301
301
|
}, {
|
|
302
|
-
label: ( localize(
|
|
302
|
+
label: ( localize(10752, "Release Notes")),
|
|
303
303
|
run: () => {
|
|
304
304
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
305
305
|
}
|
|
@@ -310,23 +310,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
const actions = [{
|
|
313
|
-
label: ( localize(
|
|
313
|
+
label: ( localize(10766, "Update Now")),
|
|
314
314
|
run: () => this.updateService.quitAndInstall()
|
|
315
315
|
}, {
|
|
316
|
-
label: ( localize(
|
|
316
|
+
label: ( localize(10763, "Later")),
|
|
317
317
|
run: () => { }
|
|
318
318
|
}];
|
|
319
319
|
const productVersion = update.productVersion;
|
|
320
320
|
if (productVersion) {
|
|
321
321
|
actions.push({
|
|
322
|
-
label: ( localize(
|
|
322
|
+
label: ( localize(10752, "Release Notes")),
|
|
323
323
|
run: () => {
|
|
324
324
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
329
|
-
|
|
329
|
+
10767,
|
|
330
330
|
"Restart {0} to apply the latest update.",
|
|
331
331
|
this.productService.nameLong
|
|
332
332
|
)), actions, { sticky: true });
|
|
@@ -349,7 +349,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
349
349
|
group: '7_update',
|
|
350
350
|
command: {
|
|
351
351
|
id: 'update.check',
|
|
352
|
-
title: ( localize(
|
|
352
|
+
title: ( localize(10768, "Check for Updates..."))
|
|
353
353
|
},
|
|
354
354
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
355
355
|
});
|
|
@@ -358,7 +358,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
358
358
|
group: '7_update',
|
|
359
359
|
command: {
|
|
360
360
|
id: 'update.checking',
|
|
361
|
-
title: ( localize(
|
|
361
|
+
title: ( localize(10769, "Checking for Updates...")),
|
|
362
362
|
precondition: ( ContextKeyExpr.false())
|
|
363
363
|
},
|
|
364
364
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates))
|
|
@@ -368,7 +368,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
368
368
|
group: '7_update',
|
|
369
369
|
command: {
|
|
370
370
|
id: 'update.downloadNow',
|
|
371
|
-
title: ( localize(
|
|
371
|
+
title: ( localize(10770, "Download Update (1)"))
|
|
372
372
|
},
|
|
373
373
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
374
374
|
});
|
|
@@ -377,7 +377,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
377
377
|
group: '7_update',
|
|
378
378
|
command: {
|
|
379
379
|
id: 'update.downloading',
|
|
380
|
-
title: ( localize(
|
|
380
|
+
title: ( localize(10771, "Downloading Update...")),
|
|
381
381
|
precondition: ( ContextKeyExpr.false())
|
|
382
382
|
},
|
|
383
383
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading))
|
|
@@ -387,7 +387,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
387
387
|
group: '7_update',
|
|
388
388
|
command: {
|
|
389
389
|
id: 'update.install',
|
|
390
|
-
title: ( localize(
|
|
390
|
+
title: ( localize(10772, "Install Update... (1)"))
|
|
391
391
|
},
|
|
392
392
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
393
393
|
});
|
|
@@ -396,7 +396,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
396
396
|
group: '7_update',
|
|
397
397
|
command: {
|
|
398
398
|
id: 'update.updating',
|
|
399
|
-
title: ( localize(
|
|
399
|
+
title: ( localize(10773, "Installing Update...")),
|
|
400
400
|
precondition: ( ContextKeyExpr.false())
|
|
401
401
|
},
|
|
402
402
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating))
|
|
@@ -416,7 +416,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
416
416
|
order: 1,
|
|
417
417
|
command: {
|
|
418
418
|
id: 'update.showUpdateReleaseNotes',
|
|
419
|
-
title: ( localize(
|
|
419
|
+
title: ( localize(10774, "Show Update Release Notes"))
|
|
420
420
|
},
|
|
421
421
|
when: ( ContextKeyExpr.and(( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)), MAJOR_MINOR_UPDATE_AVAILABLE))
|
|
422
422
|
});
|
|
@@ -427,7 +427,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
427
427
|
order: 2,
|
|
428
428
|
command: {
|
|
429
429
|
id: 'update.restart',
|
|
430
|
-
title: ( localize(
|
|
430
|
+
title: ( localize(10775, "Restart to Update (1)"))
|
|
431
431
|
},
|
|
432
432
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
433
433
|
});
|
|
@@ -467,7 +467,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
467
467
|
constructor() {
|
|
468
468
|
super({
|
|
469
469
|
id: commandId,
|
|
470
|
-
title: isSwitchingToInsiders ? ( localize(
|
|
470
|
+
title: isSwitchingToInsiders ? ( localize(10776, "Switch to Insiders Version...")) : ( localize(10777, "Switch to Stable Version...")),
|
|
471
471
|
precondition: IsWebContext,
|
|
472
472
|
menu: {
|
|
473
473
|
id: MenuId.GlobalActivity,
|
|
@@ -501,17 +501,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
501
501
|
}
|
|
502
502
|
const res = await dialogService.confirm({
|
|
503
503
|
type: 'info',
|
|
504
|
-
message: ( localize(
|
|
504
|
+
message: ( localize(10778, "Changing the version requires a reload to take effect")),
|
|
505
505
|
detail: newQuality === 'insider' ?
|
|
506
506
|
( localize(
|
|
507
|
-
|
|
507
|
+
10779,
|
|
508
508
|
"Press the reload button to switch to the Insiders version of VS Code."
|
|
509
509
|
)) :
|
|
510
510
|
( localize(
|
|
511
|
-
|
|
511
|
+
10780,
|
|
512
512
|
"Press the reload button to switch to the Stable version of VS Code."
|
|
513
513
|
)),
|
|
514
|
-
primaryButton: ( localize(
|
|
514
|
+
primaryButton: ( localize(10781, "&&Reload"))
|
|
515
515
|
});
|
|
516
516
|
if (res.confirmed) {
|
|
517
517
|
const promises = [];
|
|
@@ -538,20 +538,20 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
538
538
|
const { result } = await dialogService.prompt({
|
|
539
539
|
type: Severity.Info,
|
|
540
540
|
message: ( localize(
|
|
541
|
-
|
|
541
|
+
10782,
|
|
542
542
|
"Choose the settings sync service to use after changing the version"
|
|
543
543
|
)),
|
|
544
544
|
detail: ( localize(
|
|
545
|
-
|
|
545
|
+
10783,
|
|
546
546
|
"The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
|
|
547
547
|
)),
|
|
548
548
|
buttons: [
|
|
549
549
|
{
|
|
550
|
-
label: ( localize(
|
|
550
|
+
label: ( localize(10784, "&&Insiders")),
|
|
551
551
|
run: () => 'insiders'
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
|
-
label: ( localize(
|
|
554
|
+
label: ( localize(10785, "&&Stable (current)")),
|
|
555
555
|
run: () => 'stable'
|
|
556
556
|
}
|
|
557
557
|
],
|