@lvce-editor/editor-worker 18.18.0 → 18.19.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 +7 -7
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -5501,13 +5501,13 @@ const findAllReferences$1 = async editor => {
|
|
|
5501
5501
|
};
|
|
5502
5502
|
|
|
5503
5503
|
const getFormattingEdits = async editor => {
|
|
5504
|
-
const
|
|
5505
|
-
|
|
5506
|
-
editor,
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
}
|
|
5510
|
-
return
|
|
5504
|
+
const textDocument = {
|
|
5505
|
+
documentId: editor.id || editor.uid,
|
|
5506
|
+
languageId: editor.languageId,
|
|
5507
|
+
text: getText$1(editor),
|
|
5508
|
+
uri: editor.uri
|
|
5509
|
+
};
|
|
5510
|
+
return invoke$e('Extensions.executeFormattingProvider', textDocument);
|
|
5511
5511
|
};
|
|
5512
5512
|
|
|
5513
5513
|
const expectedErrorMessage$1 = 'Failed to execute formatting provider: FormattingError:';
|