Skip to content

Commit 22a2a38

Browse files
Copilotalexr00
andauthored
Initialize environment service with isBuilt property in standalone theme service (#278734)
* Initial plan * Initialize _environment with isBuilt: false for standalone editor Co-authored-by: alexr00 <[email protected]> * Simplify _environment initialization to use object literal Co-authored-by: alexr00 <[email protected]>
1 parent 3ce5545 commit 22a2a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/standalone/browser/standaloneThemeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class StandaloneThemeService extends Disposable implements IStandaloneThe
222222
private readonly _onProductIconThemeChange = this._register(new Emitter<IProductIconTheme>());
223223
public readonly onDidProductIconThemeChange = this._onProductIconThemeChange.event;
224224

225-
private readonly _environment: IEnvironmentService = Object.create(null);
225+
private readonly _environment: IEnvironmentService = { isBuilt: false } as IEnvironmentService;
226226
private readonly _knownThemes: Map<string, StandaloneTheme>;
227227
private _autoDetectHighContrast: boolean;
228228
private _codiconCSS: string;

0 commit comments

Comments
 (0)