Skip to content

Commit e7b40c1

Browse files
committed
1 parent 1608901 commit e7b40c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/editor/contrib/hover/colorHoverParticipant.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,16 @@ export class ColorHoverParticipant implements IEditorHoverParticipant<ColorHover
6060
}
6161
const colorDetector = ColorDetector.get(this._editor);
6262
for (const d of lineDecorations) {
63+
if (d.options.description !== 'color-detector-color') {
64+
continue;
65+
}
66+
6367
const colorData = colorDetector.getColorData(d.range.getStartPosition());
6468
if (colorData) {
6569
const colorHover = await this._createColorHover(this._editor.getModel(), colorData.colorInfo, colorData.provider);
6670
return [colorHover];
6771
}
72+
6873
}
6974
return [];
7075
}

0 commit comments

Comments
 (0)