@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.
@@ -32,4 +32,5 @@ export declare class BrowserUpdateService extends Disposable implements IUpdateS
32
32
  applyUpdate(): Promise<void>;
33
33
  quitAndInstall(): Promise<void>;
34
34
  _applySpecificUpdate(packagePath: string): Promise<void>;
35
+ disableProgressiveReleases(): Promise<void>;
35
36
  }
@@ -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() { return this._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({ version: update.version, productVersion: update.version });
43
- }
44
- else {
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 };