Ensures ColorId.DefaultBackground is set when no colors are registered.

This commit is contained in:
Henning Dieterichs
2026-03-06 18:18:20 +01:00
committed by Henning Dieterichs
parent be9986cffd
commit 77375f1dc7

View File

@@ -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;
}