@lvce-editor/editor-worker 19.29.3 → 19.29.4

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.
@@ -1440,7 +1440,7 @@ const ExtensionManagementWorker = 9006;
1440
1440
  const IconThemeWorker = 7009;
1441
1441
  const MarkdownWorker = 300;
1442
1442
  const OpenerWorker = 4561;
1443
- const RendererWorker$1 = 1;
1443
+ const RendererWorker = 1;
1444
1444
 
1445
1445
  const FocusSelector$1 = 'Viewlet.focusSelector';
1446
1446
  const SetCss$1 = 'Viewlet.setCss';
@@ -1557,7 +1557,7 @@ const {
1557
1557
  invoke: invoke$a,
1558
1558
  invokeAndTransfer,
1559
1559
  set: set$a
1560
- } = create$a(RendererWorker$1);
1560
+ } = create$a(RendererWorker);
1561
1561
  const showContextMenu2 = async (uid, menuId, x, y, args) => {
1562
1562
  number(uid);
1563
1563
  number(menuId);
@@ -1611,26 +1611,6 @@ const sendMessagePortToSyntaxHighlightingWorker$1 = async port => {
1611
1611
  await invokeAndTransfer('SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
1612
1612
  };
1613
1613
 
1614
- const RendererWorker = {
1615
- __proto__: null,
1616
- getPreference,
1617
- handleWorkspaceRefresh,
1618
- invoke: invoke$a,
1619
- invokeAndTransfer,
1620
- openUri,
1621
- readClipBoardText,
1622
- readFile: readFile$1,
1623
- sendMessagePortToDialogWorker,
1624
- sendMessagePortToErrorWorker,
1625
- sendMessagePortToExtensionManagementWorker: sendMessagePortToExtensionManagementWorker$1,
1626
- sendMessagePortToOpenerWorker,
1627
- sendMessagePortToSyntaxHighlightingWorker: sendMessagePortToSyntaxHighlightingWorker$1,
1628
- sendMessagePortToTextMeasurementWorker,
1629
- set: set$a,
1630
- showContextMenu2,
1631
- writeClipBoardText
1632
- };
1633
-
1634
1614
  const {
1635
1615
  invoke: invoke$9,
1636
1616
  set: set$9
@@ -3766,9 +3746,8 @@ const splitLines = lines => {
3766
3746
  return lines.split('\n');
3767
3747
  };
3768
3748
 
3769
- const {
3770
- invoke: invoke$6,
3771
- readFile} = RendererWorker;
3749
+ const invoke$6 = (...args) => invoke$a(...args);
3750
+ const readFile = (...args) => readFile$1(...args);
3772
3751
 
3773
3752
  const notifyTabModifiedStatusChange = async (uri, modified) => {
3774
3753
  try {
@@ -13624,6 +13603,13 @@ const handleError = async (error, editor) => {
13624
13603
  await handleError$1(error, 'Failed to update diagnostics: ');
13625
13604
  return editor;
13626
13605
  };
13606
+ const notifyDiagnosticsChange = async uri => {
13607
+ try {
13608
+ await invoke$6('Layout.handleDiagnosticsChange', uri);
13609
+ } catch {
13610
+ // Older renderer workers do not support diagnostics change listeners.
13611
+ }
13612
+ };
13627
13613
  const updateDiagnostics = async editor => {
13628
13614
  if (!editor.diagnosticsEnabled) {
13629
13615
  return editor;
@@ -13636,6 +13622,7 @@ const updateDiagnostics = async editor => {
13636
13622
  }
13637
13623
  const newEditor = await addDiagnostics(latest.newState, diagnostics);
13638
13624
  set$8(editor.id, latest.oldState, newEditor);
13625
+ await notifyDiagnosticsChange(newEditor.uri);
13639
13626
  return newEditor;
13640
13627
  } catch (error) {
13641
13628
  return handleError(error, editor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.29.3",
3
+ "version": "19.29.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"