@lvce-editor/editor-worker 5.6.0 → 5.7.0
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.
- package/dist/editorWorkerMain.js +3 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1860,7 +1860,7 @@ const updateDiagnostics = async newState => {
|
|
|
1860
1860
|
const diagnostics = await executeDiagnosticProvider(newState);
|
|
1861
1861
|
const latest = get$6(newState.id);
|
|
1862
1862
|
if (!latest) {
|
|
1863
|
-
return;
|
|
1863
|
+
return newState;
|
|
1864
1864
|
}
|
|
1865
1865
|
const decorations = getVisibleDiagnostics(latest.newState, diagnostics);
|
|
1866
1866
|
const newEditor = {
|
|
@@ -1870,6 +1870,7 @@ const updateDiagnostics = async newState => {
|
|
|
1870
1870
|
};
|
|
1871
1871
|
set$6(newState.id, latest.oldState, newEditor);
|
|
1872
1872
|
await invoke$3('Editor.rerender', newState.id);
|
|
1873
|
+
return newEditor;
|
|
1873
1874
|
} catch (error) {
|
|
1874
1875
|
// @ts-ignore
|
|
1875
1876
|
if (error && error.message.includes('No diagnostic provider found')) {
|
|
@@ -9596,6 +9597,7 @@ const commandMap = {
|
|
|
9596
9597
|
'Editor.typeWithAutoClosing': typeWithAutoClosing,
|
|
9597
9598
|
'Editor.undo': undo,
|
|
9598
9599
|
'Editor.unIndent': editorUnindent,
|
|
9600
|
+
'Editor.updateDiagnostics': updateDiagnostics,
|
|
9599
9601
|
'EditorCompletion.advance': advance,
|
|
9600
9602
|
'EditorCompletion.closeDetails': closeDetails,
|
|
9601
9603
|
'EditorCompletion.focusFirst': focusFirst,
|