@codingame/monaco-vscode-update-service-override 12.0.1 → 13.1.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/index.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +7 -8
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.d.ts +8 -8
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +24 -24
- package/vscode/src/vs/workbench/contrib/update/browser/media/releasenoteseditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.d.ts +13 -13
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +34 -34
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +33 -33
- package/vscode/src/vs/workbench/contrib/update/browser/update.d.ts +15 -15
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +71 -71
- package/vscode/src/vs/workbench/services/update/browser/updateService.d.ts +6 -6
- package/vscode/src/vs/workbench/services/update/browser/updateService.js +8 -8
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
1
|
+
import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
2
|
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
-
import { IUpdateService } from 'vscode/vscode/vs/platform/update/common/update.service';
|
|
2
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { IUpdateService } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service';
|
|
4
4
|
import { BrowserUpdateService } from './vscode/src/vs/workbench/services/update/browser/updateService.js';
|
|
5
5
|
import './vscode/src/vs/workbench/contrib/update/browser/update.contribution.js';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "13.1.0"
|
|
23
24
|
},
|
|
24
|
-
"peerDependencies": {},
|
|
25
|
-
"peerDependenciesMeta": {},
|
|
26
25
|
"main": "index.js",
|
|
27
26
|
"module": "index.js",
|
|
28
27
|
"types": "index.d.ts",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import { isWindows, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
|
+
import { isWindows, isWeb } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
|
|
7
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(2233, "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
|
+
2234,
|
|
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(2235, "Disable updates.")),
|
|
26
26
|
( localize(
|
|
27
|
-
|
|
27
|
+
2236,
|
|
28
28
|
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
29
29
|
)),
|
|
30
30
|
( localize(
|
|
31
|
-
|
|
31
|
+
2237,
|
|
32
32
|
"Check for updates only on startup. Disable automatic background update checks."
|
|
33
33
|
)),
|
|
34
34
|
( localize(
|
|
35
|
-
|
|
35
|
+
2238,
|
|
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
|
+
2234,
|
|
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
|
+
2239,
|
|
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(2240, "Enable Background Updates on Windows")),
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
2241,
|
|
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
|
+
2242,
|
|
75
75
|
"Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
|
|
76
76
|
)),
|
|
77
77
|
tags: ['usesOnlineServices']
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IAction } from "vscode/vscode/vs/base/common/actions";
|
|
2
|
-
import type { Tokens } from "vscode/vscode/vs/base/common/marked/marked";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
-
import { IClipboardService } from "vscode/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
5
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
-
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
7
|
-
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
8
|
-
import { IPreferencesService } from "vscode/vscode/vs/workbench/services/preferences/common/preferences.service";
|
|
1
|
+
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
2
|
+
import type { Tokens } from "@codingame/monaco-vscode-api/vscode/vs/base/common/marked/marked";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
5
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
7
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
8
|
+
import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service";
|
|
9
9
|
export declare class SimpleSettingRenderer {
|
|
10
10
|
private readonly _configurationService;
|
|
11
11
|
private readonly _contextMenuService;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
4
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
6
|
-
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
7
|
-
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
|
-
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
10
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
11
|
-
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
4
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
5
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
7
|
+
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
8
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
10
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
11
|
+
import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
12
12
|
import { settingKeyToDisplayFormat } from '@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels';
|
|
13
13
|
|
|
14
14
|
let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
@@ -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(7049, "View in Settings");
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
116
116
|
return localize(
|
|
117
|
-
|
|
117
|
+
7050,
|
|
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
|
+
7051,
|
|
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
|
+
7052,
|
|
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
|
+
7053,
|
|
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(7054, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
return localize(
|
|
161
|
+
return localize(7055, "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
|
+
7056,
|
|
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
|
+
7057,
|
|
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
|
+
7058,
|
|
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
|
+
7059,
|
|
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(7060, "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(7061, "Copy Setting ID")),
|
|
284
|
+
label: ( localize(7061, "Copy Setting ID")),
|
|
285
285
|
run: () => {
|
|
286
286
|
this._clipboardService.writeText(settingId);
|
|
287
287
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
1
|
+
import n from '@codingame/monaco-vscode-api/external/rollup-plugin-styles/dist/runtime/inject-css';
|
|
2
2
|
|
|
3
3
|
var css = ".file-icons-enabled .show-file-icons .webview-vs_code_release_notes-name-file-icon.file-icon:before{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik0xMDI0IDEwMjRIMFYwaDEwMjR2MTAyNHoiIHN0eWxlPSJmaWxsOiNmNmY2ZjY7ZmlsbC1vcGFjaXR5OjAiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTAyNCA4NS4zMzN2ODUzLjMzM0gwVjg1LjMzM2gxMDI0eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0wIDg1LjMzM2gyOTguNjY3djg1My4zMzNIMFY4NS4zMzN6bTEwMjQgMHY4NTMuMzMzSDM4NFY4NS4zMzNoNjQwem0tNTU0LjY2NyAxNjBoMzQxLjMzM3YtNjRINDY5LjMzM3Y2NHptMzQxLjMzNCA1MzMuMzM0SDQ2OS4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0xMjgtMTQ5LjMzNEg1OTcuMzMzdjY0aDM0MS4zMzNsLjAwMS02NHptMC0xNDkuMzMzSDU5Ny4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0wLTE0OS4zMzNINTk3LjMzM3Y2NGgzNDEuMzMzbC4wMDEtNjR6IiBzdHlsZT0iZmlsbDojMTY3YWJmIi8+PC9zdmc+\");content:\" \"}";
|
|
4
4
|
n(css,{});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
2
|
-
import { IEnvironmentService } from "vscode/vscode/vs/platform/environment/common/environment.service";
|
|
3
|
-
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
|
-
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
5
|
-
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
6
|
-
import { IRequestService } from "vscode/vscode/vs/platform/request/common/request.service";
|
|
7
|
-
import { IWebviewWorkbenchService } from "vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
|
-
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
9
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
10
|
-
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
-
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
1
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
2
|
+
import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
|
|
3
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
4
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
5
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
6
|
+
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
7
|
+
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
8
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
9
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
10
|
+
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
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";
|
|
14
14
|
export declare class ReleaseNotesManager {
|
|
15
15
|
private readonly _environmentService;
|
|
16
16
|
private readonly _keybindingService;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import './media/releasenoteseditor.css.js';
|
|
4
|
-
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
5
|
-
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
6
|
-
import { escapeMarkdownSyntaxTokens } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
4
|
+
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
|
+
import { onUnexpectedError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
6
|
+
import { escapeMarkdownSyntaxTokens } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
7
|
import { KeybindingParser } from '@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common/vscode/vs/base/common/keybindingParser';
|
|
8
|
-
import { escape } from 'vscode/vscode/vs/base/common/strings';
|
|
9
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
10
|
-
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
11
|
-
import { TokenizationRegistry } from 'vscode/vscode/vs/editor/common/languages';
|
|
12
|
-
import { generateTokensCSSForColorMap } from 'vscode/vscode/vs/editor/common/languages/supports/tokenization';
|
|
13
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
14
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
15
|
-
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
16
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
17
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
18
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
19
|
-
import { asTextOrError } from 'vscode/vscode/vs/platform/request/common/request';
|
|
20
|
-
import { IRequestService } from 'vscode/vscode/vs/platform/request/common/request.service';
|
|
8
|
+
import { escape } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
9
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
|
+
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
11
|
+
import { TokenizationRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
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';
|
|
14
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
|
+
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
16
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
17
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
18
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
19
|
+
import { asTextOrError } from '@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request';
|
|
20
|
+
import { IRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service';
|
|
21
21
|
import { renderMarkdownDocument, DEFAULT_MARKDOWN_STYLES } from '@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common/vscode/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer';
|
|
22
|
-
import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
23
|
-
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
24
|
-
import { ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
25
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
26
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
27
|
-
import { supportsTelemetry, getTelemetryLevel } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
28
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
29
|
-
import { TelemetryLevel } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
30
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
22
|
+
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
23
|
+
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
24
|
+
import { ACTIVE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
25
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
26
|
+
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
27
|
+
import { supportsTelemetry, getTelemetryLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
28
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
29
|
+
import { TelemetryLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry';
|
|
30
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
31
31
|
import { SimpleSettingRenderer } from '../../markdown/browser/markdownSettingRenderer.js';
|
|
32
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
33
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
34
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
35
|
-
import { dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
36
|
-
import { asWebviewUri } from 'vscode/vscode/vs/workbench/contrib/webview/common/webview';
|
|
32
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
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';
|
|
35
|
+
import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
36
|
+
import { asWebviewUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
|
|
37
37
|
|
|
38
38
|
let ReleaseNotesManager = class ReleaseNotesManager {
|
|
39
39
|
constructor(_environmentService, _keybindingService, _languageService, _openerService, _requestService, _configurationService, _editorService, _editorGroupService, _codeEditorService, _webviewWorkbenchService, _extensionService, _productService, _instantiationService) {
|
|
@@ -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(10430, "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(10431, "unassigned"));
|
|
136
136
|
const escapeMdHtml = (text) => {
|
|
137
137
|
return escape(text).replace(/\\/g, '\\\\');
|
|
138
138
|
};
|
|
@@ -347,7 +347,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
347
347
|
|
|
348
348
|
const label = document.createElement('label');
|
|
349
349
|
label.htmlFor = 'showReleaseNotes';
|
|
350
|
-
label.textContent = '${( localize(
|
|
350
|
+
label.textContent = '${( localize(10432, "Show release notes after an update"))}';
|
|
351
351
|
container.appendChild(label);
|
|
352
352
|
|
|
353
353
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action2 } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
2
|
-
import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
1
|
+
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
export declare class ShowCurrentReleaseNotesAction extends Action2 {
|
|
4
4
|
constructor();
|
|
5
5
|
run(accessor: ServicesAccessor): Promise<void>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import '../../../../platform/update/common/update.config.contribution.js';
|
|
3
|
-
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
6
|
-
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
7
|
-
import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
|
+
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
5
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
6
|
+
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
7
|
+
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
8
|
import { ProductContribution, UpdateContribution, SwitchProductQualityContribution, RELEASE_NOTES_URL, showReleaseNotesInEditor, CONTEXT_UPDATE_STATE, DOWNLOAD_URL } from './update.js';
|
|
9
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
10
|
-
import product from 'vscode/vscode/vs/platform/product/common/product';
|
|
11
|
-
import { StateType } from 'vscode/vscode/vs/platform/update/common/update';
|
|
12
|
-
import { IUpdateService } from 'vscode/vscode/vs/platform/update/common/update.service';
|
|
13
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
-
import { isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
15
|
-
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
16
|
-
import { mnemonicButtonLabel } from 'vscode/vscode/vs/base/common/labels';
|
|
9
|
+
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
10
|
+
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
11
|
+
import { StateType } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update';
|
|
12
|
+
import { IUpdateService } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service';
|
|
13
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
+
import { isWindows } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
15
|
+
import { IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
16
|
+
import { mnemonicButtonLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
17
17
|
import { ShowCurrentReleaseNotesActionId, ShowCurrentReleaseNotesFromCurrentFileActionId } from '@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common/vscode/vs/workbench/contrib/update/common/update';
|
|
18
|
-
import { IsWebContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
19
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
20
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
21
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
22
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { IsWebContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
19
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
20
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
21
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
22
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
23
|
|
|
24
24
|
const workbench = ( Registry.as(Extensions.Workbench));
|
|
25
25
|
workbench.registerWorkbenchContribution(ProductContribution, LifecyclePhase.Restored);
|
|
@@ -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(10433, "Show Release Notes")),
|
|
34
|
+
mnemonicTitle: ( localize(10434, "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
|
+
10435,
|
|
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(10436, "Open Current File as Release Notes")),
|
|
74
|
+
mnemonicTitle: ( localize(10434, "Show &&Release Notes")),
|
|
75
75
|
},
|
|
76
|
-
category: ( localize2(
|
|
76
|
+
category: ( localize2(10437, "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(10438, "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(10439, '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(10440, '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(10441, '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(10442, '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(10443, "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(10444, '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(10445, "Apply Update")),
|
|
193
193
|
filters: [{ name: 'Setup', extensions: ['exe'] }],
|
|
194
194
|
canSelectFiles: true,
|
|
195
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
195
|
+
openLabel: mnemonicButtonLabel(( localize(10446, "&&Update")))
|
|
196
196
|
});
|
|
197
197
|
if (!updatePath || !updatePath[0]) {
|
|
198
198
|
return;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IActivityService } from "vscode/vscode/vs/workbench/services/activity/common/activity.service";
|
|
3
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
5
|
-
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
6
|
-
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
7
|
-
import { IUpdateService } from "vscode/vscode/vs/platform/update/common/update.service";
|
|
8
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
-
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
10
|
-
import { IBrowserWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
11
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
-
import { RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
13
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
-
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
15
|
-
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service";
|
|
3
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
5
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
6
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
|
+
import { IUpdateService } from "@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service";
|
|
8
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
9
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
10
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
11
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
+
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
13
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
15
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
16
16
|
export declare const CONTEXT_UPDATE_STATE: RawContextKey<string>;
|
|
17
17
|
export declare const MAJOR_MINOR_UPDATE_AVAILABLE: RawContextKey<boolean>;
|
|
18
18
|
export declare const RELEASE_NOTES_URL: RawContextKey<string>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
5
|
-
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
5
|
+
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
7
7
|
import { NumberBadge, ProgressBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
|
|
8
|
-
import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
|
|
9
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
11
|
-
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
12
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
-
import { StateType, DisablementReason } from 'vscode/vscode/vs/platform/update/common/update';
|
|
14
|
-
import { IUpdateService } from 'vscode/vscode/vs/platform/update/common/update.service';
|
|
15
|
-
import 'vscode/vscode/vs/platform/notification/common/notification';
|
|
16
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
17
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
18
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
8
|
+
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
9
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
11
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
12
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
+
import { StateType, DisablementReason } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update';
|
|
14
|
+
import { IUpdateService } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service';
|
|
15
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
16
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
17
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
18
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
19
19
|
import { ReleaseNotesManager } from './releaseNotesEditor.js';
|
|
20
|
-
import { isWeb, isMacintosh, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
21
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
|
-
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
24
|
-
import { MenuRegistry, MenuId, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
25
|
-
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
26
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
27
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
28
|
-
import { SyncStatus } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync';
|
|
29
|
-
import { IUserDataSyncEnablementService, IUserDataSyncStoreManagementService, IUserDataSyncService } from 'vscode/vscode/vs/platform/userDataSync/common/userDataSync.service';
|
|
30
|
-
import { IsWebContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
31
|
-
import { Promises } from 'vscode/vscode/vs/base/common/async';
|
|
32
|
-
import { IUserDataSyncWorkbenchService } from 'vscode/vscode/vs/workbench/services/userDataSync/common/userDataSync.service';
|
|
33
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
34
|
-
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
20
|
+
import { isWeb, isMacintosh, isWindows } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
21
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
|
+
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
24
|
+
import { MenuRegistry, MenuId, registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
25
|
+
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
26
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
27
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
28
|
+
import { SyncStatus } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync';
|
|
29
|
+
import { IUserDataSyncEnablementService, IUserDataSyncStoreManagementService, IUserDataSyncService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service';
|
|
30
|
+
import { IsWebContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
31
|
+
import { Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
32
|
+
import { IUserDataSyncWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataSync/common/userDataSync.service';
|
|
33
|
+
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
34
|
+
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
35
35
|
|
|
36
36
|
var ProductContribution_1;
|
|
37
37
|
const CONTEXT_UPDATE_STATE = ( new RawContextKey('updateState', StateType.Uninitialized));
|
|
@@ -54,7 +54,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
|
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
throw ( new Error(( localize(
|
|
57
|
-
|
|
57
|
+
10447,
|
|
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
|
+
10448,
|
|
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(10449, "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
|
+
10450,
|
|
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(10451, "Learn More")), undefined, undefined, () => {
|
|
189
189
|
this.openerService.open('https://aka.ms/vscode-windows-setup');
|
|
190
190
|
}))
|
|
191
191
|
]
|
|
@@ -222,18 +222,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
222
222
|
let badge = undefined;
|
|
223
223
|
let priority = undefined;
|
|
224
224
|
if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
|
|
225
|
-
badge = ( new NumberBadge(1, () => ( localize(
|
|
225
|
+
badge = ( new NumberBadge(1, () => ( localize(10452, "New {0} update available.", this.productService.nameShort))));
|
|
226
226
|
}
|
|
227
227
|
else if (state.type === StateType.CheckingForUpdates) {
|
|
228
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
228
|
+
badge = ( new ProgressBadge(() => ( localize(10453, "Checking for Updates..."))));
|
|
229
229
|
priority = 1;
|
|
230
230
|
}
|
|
231
231
|
else if (state.type === StateType.Downloading) {
|
|
232
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
232
|
+
badge = ( new ProgressBadge(() => ( localize(10454, "Downloading..."))));
|
|
233
233
|
priority = 1;
|
|
234
234
|
}
|
|
235
235
|
else if (state.type === StateType.Updating) {
|
|
236
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
236
|
+
badge = ( new ProgressBadge(() => ( localize(10455, "Updating..."))));
|
|
237
237
|
priority = 1;
|
|
238
238
|
}
|
|
239
239
|
this.badgeDisposable.clear();
|
|
@@ -250,11 +250,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
250
250
|
this.notificationService.notify({
|
|
251
251
|
severity: Severity.Error,
|
|
252
252
|
message: error,
|
|
253
|
-
source: ( localize(
|
|
253
|
+
source: ( localize(10456, "Update Service")),
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
onUpdateNotAvailable() {
|
|
257
|
-
this.dialogService.info(( localize(
|
|
257
|
+
this.dialogService.info(( localize(10457, "There are currently no updates available.")));
|
|
258
258
|
}
|
|
259
259
|
onUpdateAvailable(update) {
|
|
260
260
|
if (!this.shouldShowNotification()) {
|
|
@@ -264,14 +264,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
264
264
|
if (!productVersion) {
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
this.notificationService.prompt(Severity.Info, ( localize(
|
|
268
|
-
label: ( localize(
|
|
267
|
+
this.notificationService.prompt(Severity.Info, ( localize(10458, "There is an available update.")), [{
|
|
268
|
+
label: ( localize(10459, "Download Update")),
|
|
269
269
|
run: () => this.updateService.downloadUpdate()
|
|
270
270
|
}, {
|
|
271
|
-
label: ( localize(
|
|
271
|
+
label: ( localize(10460, "Later")),
|
|
272
272
|
run: () => { }
|
|
273
273
|
}, {
|
|
274
|
-
label: ( localize(
|
|
274
|
+
label: ( localize(10449, "Release Notes")),
|
|
275
275
|
run: () => {
|
|
276
276
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
277
277
|
}
|
|
@@ -292,18 +292,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
295
|
-
|
|
295
|
+
10461,
|
|
296
296
|
"There's an update available: {0} {1}",
|
|
297
297
|
this.productService.nameLong,
|
|
298
298
|
productVersion
|
|
299
299
|
)), [{
|
|
300
|
-
label: ( localize(
|
|
300
|
+
label: ( localize(10462, "Install Update")),
|
|
301
301
|
run: () => this.updateService.applyUpdate()
|
|
302
302
|
}, {
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(10460, "Later")),
|
|
304
304
|
run: () => { }
|
|
305
305
|
}, {
|
|
306
|
-
label: ( localize(
|
|
306
|
+
label: ( localize(10449, "Release Notes")),
|
|
307
307
|
run: () => {
|
|
308
308
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
309
309
|
}
|
|
@@ -314,23 +314,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
const actions = [{
|
|
317
|
-
label: ( localize(
|
|
317
|
+
label: ( localize(10463, "Update Now")),
|
|
318
318
|
run: () => this.updateService.quitAndInstall()
|
|
319
319
|
}, {
|
|
320
|
-
label: ( localize(
|
|
320
|
+
label: ( localize(10460, "Later")),
|
|
321
321
|
run: () => { }
|
|
322
322
|
}];
|
|
323
323
|
const productVersion = update.productVersion;
|
|
324
324
|
if (productVersion) {
|
|
325
325
|
actions.push({
|
|
326
|
-
label: ( localize(
|
|
326
|
+
label: ( localize(10449, "Release Notes")),
|
|
327
327
|
run: () => {
|
|
328
328
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
333
|
-
|
|
333
|
+
10464,
|
|
334
334
|
"Restart {0} to apply the latest update.",
|
|
335
335
|
this.productService.nameLong
|
|
336
336
|
)), actions, { sticky: true });
|
|
@@ -353,7 +353,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
353
353
|
group: '7_update',
|
|
354
354
|
command: {
|
|
355
355
|
id: 'update.check',
|
|
356
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(10465, "Check for Updates..."))
|
|
357
357
|
},
|
|
358
358
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
359
359
|
});
|
|
@@ -362,7 +362,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
362
362
|
group: '7_update',
|
|
363
363
|
command: {
|
|
364
364
|
id: 'update.checking',
|
|
365
|
-
title: ( localize(
|
|
365
|
+
title: ( localize(10453, "Checking for Updates...")),
|
|
366
366
|
precondition: ( ContextKeyExpr.false())
|
|
367
367
|
},
|
|
368
368
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates))
|
|
@@ -372,7 +372,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
372
372
|
group: '7_update',
|
|
373
373
|
command: {
|
|
374
374
|
id: 'update.downloadNow',
|
|
375
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(10466, "Download Update (1)"))
|
|
376
376
|
},
|
|
377
377
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
378
378
|
});
|
|
@@ -381,7 +381,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
381
381
|
group: '7_update',
|
|
382
382
|
command: {
|
|
383
383
|
id: 'update.downloading',
|
|
384
|
-
title: ( localize(
|
|
384
|
+
title: ( localize(10467, "Downloading Update...")),
|
|
385
385
|
precondition: ( ContextKeyExpr.false())
|
|
386
386
|
},
|
|
387
387
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading))
|
|
@@ -391,7 +391,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
391
391
|
group: '7_update',
|
|
392
392
|
command: {
|
|
393
393
|
id: 'update.install',
|
|
394
|
-
title: ( localize(
|
|
394
|
+
title: ( localize(10468, "Install Update... (1)"))
|
|
395
395
|
},
|
|
396
396
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
397
397
|
});
|
|
@@ -400,7 +400,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
400
400
|
group: '7_update',
|
|
401
401
|
command: {
|
|
402
402
|
id: 'update.updating',
|
|
403
|
-
title: ( localize(
|
|
403
|
+
title: ( localize(10469, "Installing Update...")),
|
|
404
404
|
precondition: ( ContextKeyExpr.false())
|
|
405
405
|
},
|
|
406
406
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating))
|
|
@@ -420,7 +420,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
420
420
|
order: 1,
|
|
421
421
|
command: {
|
|
422
422
|
id: 'update.showUpdateReleaseNotes',
|
|
423
|
-
title: ( localize(
|
|
423
|
+
title: ( localize(10470, "Show Update Release Notes"))
|
|
424
424
|
},
|
|
425
425
|
when: ( ContextKeyExpr.and(( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)), MAJOR_MINOR_UPDATE_AVAILABLE))
|
|
426
426
|
});
|
|
@@ -431,7 +431,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
431
431
|
order: 2,
|
|
432
432
|
command: {
|
|
433
433
|
id: 'update.restart',
|
|
434
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(10471, "Restart to Update (1)"))
|
|
435
435
|
},
|
|
436
436
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
437
437
|
});
|
|
@@ -471,7 +471,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
471
471
|
constructor() {
|
|
472
472
|
super({
|
|
473
473
|
id: commandId,
|
|
474
|
-
title: isSwitchingToInsiders ? ( localize(
|
|
474
|
+
title: isSwitchingToInsiders ? ( localize(10472, "Switch to Insiders Version...")) : ( localize(10473, "Switch to Stable Version...")),
|
|
475
475
|
precondition: IsWebContext,
|
|
476
476
|
menu: {
|
|
477
477
|
id: MenuId.GlobalActivity,
|
|
@@ -505,17 +505,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
505
505
|
}
|
|
506
506
|
const res = await dialogService.confirm({
|
|
507
507
|
type: 'info',
|
|
508
|
-
message: ( localize(
|
|
508
|
+
message: ( localize(10474, "Changing the version requires a reload to take effect")),
|
|
509
509
|
detail: newQuality === 'insider' ?
|
|
510
510
|
( localize(
|
|
511
|
-
|
|
511
|
+
10475,
|
|
512
512
|
"Press the reload button to switch to the Insiders version of VS Code."
|
|
513
513
|
)) :
|
|
514
514
|
( localize(
|
|
515
|
-
|
|
515
|
+
10476,
|
|
516
516
|
"Press the reload button to switch to the Stable version of VS Code."
|
|
517
517
|
)),
|
|
518
|
-
primaryButton: ( localize(
|
|
518
|
+
primaryButton: ( localize(10477, "&&Reload"))
|
|
519
519
|
});
|
|
520
520
|
if (res.confirmed) {
|
|
521
521
|
const promises = [];
|
|
@@ -542,20 +542,20 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
542
542
|
const { result } = await dialogService.prompt({
|
|
543
543
|
type: Severity.Info,
|
|
544
544
|
message: ( localize(
|
|
545
|
-
|
|
545
|
+
10478,
|
|
546
546
|
"Choose the settings sync service to use after changing the version"
|
|
547
547
|
)),
|
|
548
548
|
detail: ( localize(
|
|
549
|
-
|
|
549
|
+
10479,
|
|
550
550
|
"The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
|
|
551
551
|
)),
|
|
552
552
|
buttons: [
|
|
553
553
|
{
|
|
554
|
-
label: ( localize(
|
|
554
|
+
label: ( localize(10480, "&&Insiders")),
|
|
555
555
|
run: () => 'insiders'
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
|
-
label: ( localize(
|
|
558
|
+
label: ( localize(10481, "&&Stable (current)")),
|
|
559
559
|
run: () => 'stable'
|
|
560
560
|
}
|
|
561
561
|
],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { State } from "vscode/vscode/vs/platform/update/common/update";
|
|
3
|
-
import { IUpdateService } from "vscode/vscode/vs/platform/update/common/update.service";
|
|
4
|
-
import { IBrowserWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
5
|
-
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
6
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { State } from "@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update";
|
|
3
|
+
import { IUpdateService } from "@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service";
|
|
4
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
5
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
6
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
7
7
|
export interface IUpdate {
|
|
8
8
|
version: string;
|
|
9
9
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
-
import { State, UpdateType } from 'vscode/vscode/vs/platform/update/common/update';
|
|
5
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
7
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
8
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
9
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { State, UpdateType } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
7
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
8
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
9
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
|
|
11
11
|
let BrowserUpdateService = class BrowserUpdateService extends Disposable {
|
|
12
12
|
get state() { return this._state; }
|