@lvce-editor/editor-worker 19.67.5 → 19.67.6

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.
@@ -16862,7 +16862,7 @@ const diagnosticsEqual = (left, right) => {
16862
16862
  });
16863
16863
  };
16864
16864
  const diagnosticLayoutEqual = (left, right) => left.charWidth === right.charWidth && left.deltaY === right.deltaY && left.fontFamily === right.fontFamily && left.fontSize === right.fontSize && left.fontWeight === right.fontWeight && left.isMonospaceFont === right.isMonospaceFont && left.itemHeight === right.itemHeight && left.letterSpacing === right.letterSpacing && left.lines === right.lines && left.minLineY === right.minLineY && left.rowHeight === right.rowHeight && left.tabSize === right.tabSize && left.viewLineIndices === right.viewLineIndices && left.width === right.width;
16865
- const isApplicable = (latest, editor) => latest && latest.newState.diagnosticsEnabled && latest.newState.diagnostics === editor.diagnostics && latest.newState.languageId === editor.languageId && latest.newState.lines === editor.lines && latest.newState.uri === editor.uri;
16865
+ const isApplicable = (latest, editor) => latest && latest.newState.diagnosticsEnabled && !latest.newState.loadError && latest.newState.diagnostics === editor.diagnostics && latest.newState.languageId === editor.languageId && latest.newState.lines === editor.lines && latest.newState.uri === editor.uri;
16866
16866
  const mergeDiagnostics = (editor, editorWithDiagnostics) => ({
16867
16867
  ...editor,
16868
16868
  decorations: editorWithDiagnostics.decorations,
@@ -16871,7 +16871,7 @@ const mergeDiagnostics = (editor, editorWithDiagnostics) => ({
16871
16871
  visualDecorations: editorWithDiagnostics.visualDecorations
16872
16872
  });
16873
16873
  const updateDiagnostics = async editor => {
16874
- if (!editor.diagnosticsEnabled) {
16874
+ if (!editor.diagnosticsEnabled || editor.loadError) {
16875
16875
  return editor;
16876
16876
  }
16877
16877
  try {
@@ -16926,7 +16926,7 @@ const editorDiagnosticEffect = {
16926
16926
  apply(editor) {
16927
16927
  return updateDiagnostics(editor);
16928
16928
  },
16929
- isActive: (oldEditor, newEditor) => !oldEditor.initial && newEditor.diagnosticsEnabled && (oldEditor.lines !== newEditor.lines || oldEditor.languageId !== newEditor.languageId)
16929
+ isActive: (oldEditor, newEditor) => !oldEditor.initial && !newEditor.loadError && newEditor.diagnosticsEnabled && (oldEditor.lines !== newEditor.lines || oldEditor.languageId !== newEditor.languageId)
16930
16930
  };
16931
16931
 
16932
16932
  const cursorUndoLimit = 100;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.67.5",
3
+ "version": "19.67.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"