mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-16 17:03:29 +01:00
Strict null check partsSplash
This commit is contained in:
@@ -641,6 +641,7 @@
|
||||
"./vs/workbench/parts/snippets/test/electron-browser/snippetsRegistry.test.ts",
|
||||
"./vs/workbench/parts/snippets/test/electron-browser/snippetsRewrite.test.ts",
|
||||
"./vs/workbench/parts/snippets/test/electron-browser/snippetsService.test.ts",
|
||||
"./vs/workbench/parts/splash/electron-browser/partsSplash.contribution.ts",
|
||||
"./vs/workbench/parts/stats/node/stats.contribution.ts",
|
||||
"./vs/workbench/parts/stats/node/workspaceStats.ts",
|
||||
"./vs/workbench/parts/stats/test/workspaceStats.test.ts",
|
||||
|
||||
@@ -27,7 +27,7 @@ class PartsSplash {
|
||||
private readonly _disposables: IDisposable[] = [];
|
||||
|
||||
private _lastBaseTheme: string;
|
||||
private _lastBackground: string;
|
||||
private _lastBackground?: string;
|
||||
|
||||
constructor(
|
||||
@IThemeService private readonly _themeService: IThemeService,
|
||||
@@ -85,7 +85,7 @@ class PartsSplash {
|
||||
}
|
||||
}
|
||||
|
||||
private _getThemeColor(id: ColorIdentifier): string {
|
||||
private _getThemeColor(id: ColorIdentifier): string | undefined {
|
||||
const theme = this._themeService.getTheme();
|
||||
const color = theme.getColor(id);
|
||||
return color ? color.toString() : undefined;
|
||||
|
||||
Reference in New Issue
Block a user