@@ -66,18 +66,25 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
66
66
}
67
67
68
68
if ( isNative ) {
69
+
69
70
// Titlebar style
70
71
processChanged ( ( config . window . titleBarStyle === 'native' || config . window . titleBarStyle === 'custom' ) && this . titleBarStyle . handleChange ( config . window ?. titleBarStyle ) ) ;
72
+
71
73
// Windows: Window Controls Overlay
72
74
processChanged ( isWindows && this . windowControlsOverlayEnabled . handleChange ( config . window ?. experimental ?. windowControlsOverlay ?. enabled ) ) ;
75
+
73
76
// Windows: Sandbox
74
77
processChanged ( this . windowSandboxEnabled . handleChange ( config . window ?. experimental ?. useSandbox ) ) ;
78
+
75
79
// macOS: Native tabs
76
80
processChanged ( isMacintosh && this . nativeTabs . handleChange ( config . window ?. nativeTabs ) ) ;
81
+
77
82
// macOS: Native fullscreen
78
83
processChanged ( isMacintosh && this . nativeFullScreen . handleChange ( config . window ?. nativeFullScreen ) ) ;
84
+
79
85
// macOS: Click through (accept first mouse)
80
86
processChanged ( isMacintosh && this . clickThroughInactive . handleChange ( config . window ?. clickThroughInactive ) ) ;
87
+
81
88
// Update channel
82
89
processChanged ( this . updateMode . handleChange ( config . update ?. mode ) ) ;
83
90
@@ -91,12 +98,14 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
91
98
92
99
// Workspace trust
93
100
processChanged ( this . workspaceTrustEnabled . handleChange ( config ?. security ?. workspace ?. trust ?. enabled ) ) ;
94
-
95
101
}
102
+
96
103
// Profiles
97
104
processChanged ( this . productService . quality === 'stable' && this . settingsProfilesEnabled . handleChange ( config . workbench ?. experimental ?. settingsProfiles ?. enabled ) ) ;
105
+
98
106
// Experiments
99
107
processChanged ( this . experimentsEnabled . handleChange ( config . workbench ?. enableExperiments ) ) ;
108
+
100
109
// Profiles
101
110
processChanged ( this . productService . quality !== 'stable' && this . enablePPEExtensionsGallery . handleChange ( config . _extensionsGallery ?. enablePPE ) ) ;
102
111
@@ -128,12 +137,13 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
128
137
}
129
138
130
139
interface TypeNameToType {
131
- boolean : boolean ;
132
- string : string ;
140
+ readonly boolean : boolean ;
141
+ readonly string : string ;
133
142
}
134
143
135
144
class ChangeObserver < T > {
136
- public static create < TTypeName extends 'boolean' | 'string' > ( typeName : TTypeName ) : ChangeObserver < TypeNameToType [ TTypeName ] > {
145
+
146
+ static create < TTypeName extends 'boolean' | 'string' > ( typeName : TTypeName ) : ChangeObserver < TypeNameToType [ TTypeName ] > {
137
147
return new ChangeObserver ( typeName ) ;
138
148
}
139
149
@@ -149,6 +159,7 @@ class ChangeObserver<T> {
149
159
this . lastValue = value ;
150
160
return true ;
151
161
}
162
+
152
163
return false ;
153
164
}
154
165
}
0 commit comments