File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Reuse VS Code's Electron storage service for remote persistence
22
3+ --- code-server.orig/lib/vscode/src/vs/platform/storage/electron-main/storageMainService.ts
4+ +++ code-server/lib/vscode/src/vs/platform/storage/electron-main/storageMainService.ts
5+ @@ -14 +14 @@
6+ - import { ILifecycleMainService, LifecycleMainPhase, ShutdownReason } from '../../lifecycle/electron-main/lifecycleMainService.js';
7+ + import type { ILifecycleMainService, ShutdownReason } from '../../lifecycle/electron-main/lifecycleMainService.js';
8+ @@ -101 +101 @@
9+ - @ILifecycleMainService private readonly lifecycleMainService: ILifecycleMainService,
10+ + private readonly lifecycleMainService: ILifecycleMainService,
11+ @@ -117 +117 @@
12+ - await this.lifecycleMainService.when(LifecycleMainPhase.AfterWindowOpen);
13+ + await this.lifecycleMainService.when(3 /* LifecycleMainPhase.AfterWindowOpen */);
14+ @@ -256 +256 @@
15+ - if (this.shutdownReason === ShutdownReason.KILL) {
16+ + if (this.shutdownReason === 2 /* ShutdownReason.KILL */) {
17+ @@ -295 +295 @@
18+ - if (this.shutdownReason === ShutdownReason.KILL) {
19+ + if (this.shutdownReason === 2 /* ShutdownReason.KILL */) {
20+
321--- code-server.orig/lib/vscode/src/vs/workbench/services/storage/electron-browser/storageService.ts
422+++ code-server/lib/vscode/src/vs/workbench/services/storage/electron-browser/storageService.ts
523@@ -6 +6 @@
You can’t perform that action at this time.
0 commit comments