@lvce-editor/editor-worker 19.61.1 → 19.61.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4913,11 +4913,11 @@ const getVisibleDiagnostics = async (editor, diagnostics) => {
4913
4913
  endColumnIndex,
4914
4914
  rowIndex
4915
4915
  } = diagnostic;
4916
- const columnDelta = Math.max(1, endColumnIndex - columnIndex);
4917
- const diagnosticWidth = columnDelta * charWidth;
4918
4916
  const endLineDifference = 0;
4919
4917
  const halfCursorWidth = 0;
4920
4918
  const x = await getX(lines[rowIndex], columnIndex, fontWeight, fontSize, fontFamily, isMonospaceFont, letterSpacing, tabSize, halfCursorWidth, width, charWidth, endLineDifference);
4919
+ const endX = await getX(lines[rowIndex], endColumnIndex, fontWeight, fontSize, fontFamily, isMonospaceFont, letterSpacing, tabSize, halfCursorWidth, width, charWidth, endLineDifference);
4920
+ const diagnosticWidth = Math.max(charWidth, endX - x);
4921
4921
  const visualRow = viewLineIndices ? getVisualRowForDocumentRow$1(rowIndex, viewLineIndices) : rowIndex;
4922
4922
  const y = (visualRow - startVisualRow) * rowHeight;
4923
4923
  visibleDiagnostics.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.61.1",
3
+ "version": "19.61.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"