Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/AutoSuggestion/AutoSuggestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,11 @@ const AutoSuggestion = ({
};
if (parseError) {
const { message, start, end } = parseError;
const { toOffset, fromOffset } = getOffsetRange(cm, start, end);
clearCurrentErrorMarker();
const { from, to } = markText({
view: cm,
from: fromOffset,
to: toOffset,
from: start,
to: end,
className: `${eccgui}-autosuggestion__text--highlighted-error`,
title: message,
});
Expand Down