mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 15:24:40 +01:00
Ensures ColorId.DefaultBackground is set when no colors are registered.
This commit is contained in:
committed by
Henning Dieterichs
parent
be9986cffd
commit
77375f1dc7
@@ -38,7 +38,10 @@ export class MinimapTokensColorTracker extends Disposable {
|
||||
private _updateColorMap(): void {
|
||||
const colorMap = TokenizationRegistry.getColorMap();
|
||||
if (!colorMap) {
|
||||
this._colors = [RGBA8.Empty];
|
||||
this._colors = [];
|
||||
for (let i = 0; i <= ColorId.DefaultBackground; i++) {
|
||||
this._colors[i] = RGBA8.Empty;
|
||||
}
|
||||
this._backgroundIsLight = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user