aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/editor/semanticHighlighting.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-27 16:34:14 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-07-27 16:34:14 +0200
commitdeaa0580d952b77cf9e6df024d1f71ed29f53fc0 (patch)
tree95a4e538b21c13674de99a6645bae1424714721a /subprojects/frontend/src/editor/semanticHighlighting.ts
parentdocs: Add note about proxy settings (diff)
downloadrefinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.tar.gz
refinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.tar.zst
refinery-deaa0580d952b77cf9e6df024d1f71ed29f53fc0.zip
chore: bump dependencies
Diffstat (limited to 'subprojects/frontend/src/editor/semanticHighlighting.ts')
-rw-r--r--subprojects/frontend/src/editor/semanticHighlighting.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/subprojects/frontend/src/editor/semanticHighlighting.ts b/subprojects/frontend/src/editor/semanticHighlighting.ts
index 2aed421b..a5d0af7a 100644
--- a/subprojects/frontend/src/editor/semanticHighlighting.ts
+++ b/subprojects/frontend/src/editor/semanticHighlighting.ts
@@ -1,5 +1,4 @@
1import { RangeSet } from '@codemirror/rangeset'; 1import { RangeSet, type TransactionSpec } from '@codemirror/state';
2import type { TransactionSpec } from '@codemirror/state';
3import { Decoration } from '@codemirror/view'; 2import { Decoration } from '@codemirror/view';
4 3
5import { decorationSetExtension } from './decorationSetExtension'; 4import { decorationSetExtension } from './decorationSetExtension';
@@ -16,7 +15,7 @@ const [setSemanticHighlightingInternal, semanticHighlighting] = decorationSetExt
16 15
17export function setSemanticHighlighting(ranges: IHighlightRange[]): TransactionSpec { 16export function setSemanticHighlighting(ranges: IHighlightRange[]): TransactionSpec {
18 const rangeSet = RangeSet.of(ranges.map(({ from, to, classes }) => Decoration.mark({ 17 const rangeSet = RangeSet.of(ranges.map(({ from, to, classes }) => Decoration.mark({
19 class: classes.map((c) => `cmt-problem-${c}`).join(' '), 18 class: classes.map((c) => `tok-problem-${c}`).join(' '),
20 }).range(from, to)), true); 19 }).range(from, to)), true);
21 return setSemanticHighlightingInternal(rangeSet); 20 return setSemanticHighlightingInternal(rangeSet);
22} 21}