File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -493,10 +493,10 @@ index eab8591492..26668701f7 100644
493
493
options.logService.error(`${logPrefix} socketFactory.connect() failed. Error:`);
494
494
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
495
495
new file mode 100644
496
- index 0000000000..4042e32f74
496
+ index 0000000000..96fbd4b0bb
497
497
--- /dev/null
498
498
+++ b/src/vs/server/browser/client.ts
499
- @@ -0,0 +1,263 @@
499
+ @@ -0,0 +1,270 @@
500
500
+ import { Emitter } from 'vs/base/common/event';
501
501
+ import { URI } from 'vs/base/common/uri';
502
502
+ import { localize } from 'vs/nls';
@@ -515,6 +515,7 @@ index 0000000000..4042e32f74
515
515
+ import { LocalizationsService } from 'vs/workbench/services/localizations/electron-browser/localizationsService';
516
516
+ import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
517
517
+ import { Options } from 'vs/server/ipc.d';
518
+ + import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
518
519
+
519
520
+ class TelemetryService extends TelemetryChannelClient {
520
521
+ public constructor(
@@ -725,6 +726,12 @@ index 0000000000..4042e32f74
725
726
+ };
726
727
+
727
728
+ updateLoop();
729
+ +
730
+ + // This will be used to set the background color while VS Code loads.
731
+ + const theme = (services.get(IStorageService) as IStorageService).get("colorThemeData", StorageScope.GLOBAL);
732
+ + if (theme) {
733
+ + localStorage.setItem("colorThemeData", theme);
734
+ + }
728
735
+ };
729
736
+
730
737
+ export interface Query {
Original file line number Diff line number Diff line change 100
100
< script >
101
101
require ( [ "vs/code/browser/workbench/workbench" ] , function ( ) { } )
102
102
</ script >
103
+ < script >
104
+ try {
105
+ document . body . style . background = JSON . parse ( localStorage . getItem ( "colorThemeData" ) ) . colorMap [ "editor.background" ]
106
+ } catch ( error ) {
107
+ // Oh well.
108
+ }
109
+ </ script >
103
110
</ html >
You can’t perform that action at this time.
0 commit comments