@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.
@@ -5501,13 +5501,13 @@ const findAllReferences$1 = async editor => {
5501
5501
  };
5502
5502
 
5503
5503
  const getFormattingEdits = async editor => {
5504
- const edits = await execute({
5505
- args: [],
5506
- editor,
5507
- event: 'onFormatting',
5508
- method: 'ExtensionHostFormatting.executeFormattingProvider'
5509
- });
5510
- return edits;
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:';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "18.18.0",
3
+ "version": "18.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"