fix(editor): show wavy and dotted underlines on macOS (#1086)

Error, warning, weak-warning and typo underlines never showed on macOS, nor did underline effects of syntax tokens from a colour scheme: WebKit rejects a text-decoration shorthand with a style or colour (underline wavy <colour>), so the declaration fell back to none.

The editor's diagnostic and token styles also set -webkit-text-decoration, which WebKit takes the full value through; the red wavy underlines of the Problems, Build, Project and Database views use the longhand properties.
This commit is contained in:
l0ng-ai
2026-11-04 03:01:03 +08:00
committed by GitHub
parent 1c5a92f952
commit 0dffad814a
7 changed files with 24 additions and 4 deletions
@@ -42,7 +42,9 @@
color: var(--fg-strong);
}
.fileError {
text-decoration: underline wavy var(--danger);
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-color: var(--danger);
text-decoration-skip-ink: none;
text-underline-offset: 3px;
}