Skip to content

Commit 1bca322

Browse files
Tweaks
1 parent 7546441 commit 1bca322

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/editor/codemirror/lint/lint.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ sha1 of source lint.ts facbdc305d2b5a318dbcb9bcd41f992073ecfff5 NEEDS UPDATING!!
66
To aid comparison to the original, this file is not auto-formatted
77
and we've disabled our eslint rules.
88
9-
// REVIEW THESE
109
Changes:
1110
- The gutter markers track whether they're on a line that's currently
1211
being edited.
@@ -72,7 +71,7 @@ export interface Diagnostic {
7271
/// An optional array of actions that can be taken on this
7372
/// diagnostic.
7473
actions?: readonly Action[]
75-
/// Tags control alternative presentations for diagnostics.
74+
/// Tags control alternative presentations for diagnostics.
7675
/// Currently supported tags are `"unnecessary"` and `"deprecated"`
7776
/// which are formatted with opacity and strikethrough respectively.
7877
tags?: string[]
@@ -647,9 +646,9 @@ const baseTheme = EditorView.baseTheme({
647646
".cm-lintRange-error": { backgroundImage: underline("#d11") },
648647
".cm-lintRange-warning": { backgroundImage: underline("orange") },
649648
".cm-lintRange-info": { backgroundImage: underline("#999") },
650-
// Nothing for .cm-lintRange-hint, they're styled based on tags only.
651-
".cm-lintRange-unnecessary": { opacity: 0.5 },
652-
".cm-lintRange-deprecated": { textDecoration: "line-through" },
649+
// Nothing for .cm-lintRange-hint, they're styled based on tags only.
650+
".cm-lintRange-unnecessary": { opacity: 0.5 },
651+
".cm-lintRange-deprecated": { textDecoration: "line-through" },
653652
".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
654653

655654
".cm-tooltip-lint": {
@@ -919,5 +918,5 @@ const lintGutterConfig = Facet.define<LintGutterConfig, Required<LintGutterConfi
919918
/// each line that has diagnostics, which can be hovered over to see
920919
/// the diagnostics.
921920
export function lintGutter(config: LintGutterConfig = {}): Extension {
922-
return [lintGutterConfig.of(config), lintGutterMarkers, lintGutterExtension, lintGutterTheme, lintGutterTooltip, editingLineState, editingLinePlugin,]
921+
return [lintGutterConfig.of(config), lintGutterMarkers, lintGutterExtension, lintGutterTheme, lintGutterTooltip, editingLineState, editingLinePlugin]
923922
}

0 commit comments

Comments
 (0)