mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 10:40:41 +00:00
Strict null check partsSplash
This commit is contained in:
parent
47b0d070bb
commit
6710ec0bf6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue