@codingame/monaco-vscode-update-service-override 25.1.1 → 26.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 +2 -2
- package/vscode/src/vs/platform/update/common/update.config.contribution.js +62 -69
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +68 -59
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +415 -392
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +62 -44
- package/vscode/src/vs/workbench/contrib/update/browser/update.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +315 -234
- package/vscode/src/vs/workbench/services/update/browser/updateService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/update/browser/updateService.js +12 -12
|
@@ -9,7 +9,9 @@ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
9
9
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
|
|
11
11
|
let BrowserUpdateService = class BrowserUpdateService extends Disposable {
|
|
12
|
-
get state() {
|
|
12
|
+
get state() {
|
|
13
|
+
return this._state;
|
|
14
|
+
}
|
|
13
15
|
set state(state) {
|
|
14
16
|
this._state = state;
|
|
15
17
|
this._onStateChange.fire(state);
|
|
@@ -39,29 +41,27 @@ let BrowserUpdateService = class BrowserUpdateService extends Disposable {
|
|
|
39
41
|
this.state = State.CheckingForUpdates(explicit);
|
|
40
42
|
const update = await updateProvider.checkForUpdate();
|
|
41
43
|
if (update) {
|
|
42
|
-
this.state = State.Ready({
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
this.state = State.Ready({
|
|
45
|
+
version: update.version,
|
|
46
|
+
productVersion: update.version
|
|
47
|
+
}, explicit, false);
|
|
48
|
+
} else {
|
|
45
49
|
this.state = State.Idle(UpdateType.Archive);
|
|
46
50
|
}
|
|
47
51
|
return update;
|
|
48
52
|
}
|
|
49
53
|
return undefined;
|
|
50
54
|
}
|
|
51
|
-
async downloadUpdate() {
|
|
52
|
-
}
|
|
55
|
+
async downloadUpdate() {}
|
|
53
56
|
async applyUpdate() {
|
|
54
57
|
this.hostService.reload();
|
|
55
58
|
}
|
|
56
59
|
async quitAndInstall() {
|
|
57
60
|
this.hostService.reload();
|
|
58
61
|
}
|
|
59
|
-
async _applySpecificUpdate(packagePath) {
|
|
60
|
-
}
|
|
62
|
+
async _applySpecificUpdate(packagePath) {}
|
|
63
|
+
async disableProgressiveReleases() {}
|
|
61
64
|
};
|
|
62
|
-
BrowserUpdateService = ( __decorate([
|
|
63
|
-
( __param(0, IBrowserWorkbenchEnvironmentService)),
|
|
64
|
-
( __param(1, IHostService))
|
|
65
|
-
], BrowserUpdateService));
|
|
65
|
+
BrowserUpdateService = ( __decorate([( __param(0, IBrowserWorkbenchEnvironmentService)), ( __param(1, IHostService))], BrowserUpdateService));
|
|
66
66
|
|
|
67
67
|
export { BrowserUpdateService };
|