@lvce-editor/editor-worker 19.59.0 → 19.59.1

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.
@@ -10400,9 +10400,10 @@ const newStateGenerator$3 = async (state, parentUid) => {
10400
10400
  newState
10401
10401
  } = get$8(parentUid);
10402
10402
  const {
10403
+ applicationId,
10403
10404
  languageId
10404
10405
  } = newState;
10405
- await invoke$5('Completions.create', uid, x, y, width, height, parentUid, languageId);
10406
+ await invoke$5('Completions.create', uid, x, y, width, height, parentUid, languageId, applicationId);
10406
10407
  await invoke$5('Completions.loadContent', uid);
10407
10408
  const diff = await invoke$5('Completions.diff2', uid);
10408
10409
  const commands = await invoke$5('Completions.render2', uid, diff);
@@ -15251,7 +15252,7 @@ const getEditorRowsVirtualDom$1 = (textInfos, differences, lineNumbers = true, h
15251
15252
  dom.push({
15252
15253
  childCount: textInfo.length / 2 + rowDecorations.length,
15253
15254
  className,
15254
- translate: px(difference),
15255
+ translate: difference === 0 ? '' : px(difference),
15255
15256
  type: Div
15256
15257
  });
15257
15258
  for (let j = 0; j < textInfo.length; j += 2) {
@@ -16190,7 +16191,7 @@ const diagnosticsEqual = (left, right) => {
16190
16191
  });
16191
16192
  };
16192
16193
  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;
16193
- const isApplicable = (latest, editor) => latest && latest.newState.diagnosticsEnabled && latest.newState.diagnostics === editor.diagnostics && latest.newState.lines === editor.lines && latest.newState.uri === editor.uri;
16194
+ 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;
16194
16195
  const mergeDiagnostics = (editor, editorWithDiagnostics) => ({
16195
16196
  ...editor,
16196
16197
  decorations: editorWithDiagnostics.decorations,
@@ -16254,7 +16255,7 @@ const editorDiagnosticEffect = {
16254
16255
  apply(editor) {
16255
16256
  return updateDiagnostics(editor);
16256
16257
  },
16257
- isActive: (oldEditor, newEditor) => !oldEditor.initial && newEditor.diagnosticsEnabled && oldEditor.lines !== newEditor.lines
16258
+ isActive: (oldEditor, newEditor) => !oldEditor.initial && newEditor.diagnosticsEnabled && (oldEditor.lines !== newEditor.lines || oldEditor.languageId !== newEditor.languageId)
16258
16259
  };
16259
16260
 
16260
16261
  const cursorUndoLimit = 100;
@@ -16370,6 +16371,9 @@ const wrapCommand = (fn, preservesTypingCoalescing = false) => async (uid, ...ar
16370
16371
  visualDecorations: finalEditor.visualDecorations
16371
16372
  });
16372
16373
  set$8(otherUid, instance.oldState, synchronizedEditor);
16374
+ if (editorDiagnosticEffect.isActive(editor, synchronizedEditor)) {
16375
+ void editorDiagnosticEffect.apply(synchronizedEditor);
16376
+ }
16373
16377
  }
16374
16378
  }
16375
16379
  if (lines !== finalEditor.lines && !isUntitledFile(finalEditor.uri)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.59.0",
3
+ "version": "19.59.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"