Skip to content

Commit 4845921

Browse files
authored
fix: cannot display MARK Underlined in minimap (microsoft#226116)
Fixed: microsoft#226114 After testing, there are no issues in Firefox, but in Chrome, lines with a lineWidth less than 0.3 will not be displayed. Some lines won't show if it is less than 0.4. It will only display normally if it is greater than or equal to 0.4. Codepen Test: https://codepen.io/blackhole1/pen/QWXmGYB Signed-off-by: Kevin Cui <[email protected]>
1 parent 5830db6 commit 4845921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/viewParts/minimap/minimap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ class InnerMinimap extends Disposable {
18441844
canvasContext.letterSpacing = sectionHeaderLetterSpacing + 'px';
18451845
canvasContext.font = '500 ' + sectionHeaderFontSize + 'px ' + this._model.options.sectionHeaderFontFamily;
18461846
canvasContext.strokeStyle = separatorStroke;
1847-
canvasContext.lineWidth = 0.2;
1847+
canvasContext.lineWidth = 0.4;
18481848

18491849
const decorations = this._model.getSectionHeaderDecorationsInViewport(layout.startLineNumber, layout.endLineNumber);
18501850
decorations.sort((a, b) => a.range.startLineNumber - b.range.startLineNumber);

0 commit comments

Comments
 (0)