Skip to content

Commit 12c107c

Browse files
authored
💄
1 parent 42580d6 commit 12c107c

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/vs/workbench/contrib/relauncher/browser/relauncher.contribution.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,25 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
6666
}
6767

6868
if (isNative) {
69+
6970
// Titlebar style
7071
processChanged((config.window.titleBarStyle === 'native' || config.window.titleBarStyle === 'custom') && this.titleBarStyle.handleChange(config.window?.titleBarStyle));
72+
7173
// Windows: Window Controls Overlay
7274
processChanged(isWindows && this.windowControlsOverlayEnabled.handleChange(config.window?.experimental?.windowControlsOverlay?.enabled));
75+
7376
// Windows: Sandbox
7477
processChanged(this.windowSandboxEnabled.handleChange(config.window?.experimental?.useSandbox));
78+
7579
// macOS: Native tabs
7680
processChanged(isMacintosh && this.nativeTabs.handleChange(config.window?.nativeTabs));
81+
7782
// macOS: Native fullscreen
7883
processChanged(isMacintosh && this.nativeFullScreen.handleChange(config.window?.nativeFullScreen));
84+
7985
// macOS: Click through (accept first mouse)
8086
processChanged(isMacintosh && this.clickThroughInactive.handleChange(config.window?.clickThroughInactive));
87+
8188
// Update channel
8289
processChanged(this.updateMode.handleChange(config.update?.mode));
8390

@@ -91,12 +98,14 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
9198

9299
// Workspace trust
93100
processChanged(this.workspaceTrustEnabled.handleChange(config?.security?.workspace?.trust?.enabled));
94-
95101
}
102+
96103
// Profiles
97104
processChanged(this.productService.quality === 'stable' && this.settingsProfilesEnabled.handleChange(config.workbench?.experimental?.settingsProfiles?.enabled));
105+
98106
// Experiments
99107
processChanged(this.experimentsEnabled.handleChange(config.workbench?.enableExperiments));
108+
100109
// Profiles
101110
processChanged(this.productService.quality !== 'stable' && this.enablePPEExtensionsGallery.handleChange(config._extensionsGallery?.enablePPE));
102111

@@ -128,12 +137,13 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
128137
}
129138

130139
interface TypeNameToType {
131-
boolean: boolean;
132-
string: string;
140+
readonly boolean: boolean;
141+
readonly string: string;
133142
}
134143

135144
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]> {
137147
return new ChangeObserver(typeName);
138148
}
139149

@@ -149,6 +159,7 @@ class ChangeObserver<T> {
149159
this.lastValue = value;
150160
return true;
151161
}
162+
152163
return false;
153164
}
154165
}

0 commit comments

Comments
 (0)