Skip to content

Commit 41aed0a

Browse files
committed
[WIP] Add lineComments CodeMirror extension - highlightActiveLineRS in proper place
1 parent 488e7a0 commit 41aed0a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/utils/code-mirror-line-comments-gutter.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { BlockInfo, EditorView } from '@codemirror/view';
2-
import {
3-
gutter as gutterRS,
4-
GutterMarker as GutterMarkerRS,
5-
highlightActiveLineGutter as highlightActiveLineGutterRS,
6-
} from 'codecrafters-frontend/utils/code-mirror-gutter-rs';
2+
import { gutter as gutterRS, GutterMarker as GutterMarkerRS } from 'codecrafters-frontend/utils/code-mirror-gutter-rs';
73
import { expandedLineNumbersCompartment, expandedLineNumbersFacet, lineDataFacet } from 'codecrafters-frontend/utils/code-mirror-line-comments';
84

95
class CommentsCountGutterMarker extends GutterMarkerRS {
@@ -60,6 +56,7 @@ const lineCommentsGutterBaseTheme = EditorView.baseTheme({
6056
'.cm-lineCommentsGutter': {
6157
minWidth: '24px',
6258
textAlign: 'center',
59+
userSelect: 'none',
6360

6461
'& .cm-gutterElement': {
6562
cursor: 'pointer',
@@ -117,7 +114,6 @@ export function lineCommentsGutter() {
117114
},
118115
},
119116
}),
120-
highlightActiveLineGutterRS(),
121117
lineCommentsGutterBaseTheme,
122118
];
123119
}

0 commit comments

Comments
 (0)