@lvce-editor/editor-worker 19.71.2 → 19.71.3

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.
@@ -16406,7 +16406,7 @@ const getSavedLanguageId = (savedState, languages) => {
16406
16406
  }
16407
16407
  return explicitLanguageId;
16408
16408
  };
16409
- const loadContent = async (state, savedState, largeFile = false, focus = true) => {
16409
+ const loadContent = async (state, savedState, largeFile = false, focus = true, forceReload = false) => {
16410
16410
  const {
16411
16411
  assetDir,
16412
16412
  height,
@@ -16484,11 +16484,13 @@ const loadContent = async (state, savedState, largeFile = false, focus = true) =
16484
16484
  tokenizerId: state.tokenizerId
16485
16485
  };
16486
16486
  let existingEditor;
16487
- for (const key of getKeys$2()) {
16488
- const editor = get$8(Number(key))?.newState;
16489
- if (editor && editor.id !== id && !editor.initial && editor.uri === uri && editor.applicationId === state.applicationId) {
16490
- existingEditor = editor;
16491
- break;
16487
+ if (!forceReload) {
16488
+ for (const key of getKeys$2()) {
16489
+ const editor = get$8(Number(key))?.newState;
16490
+ if (editor && editor.id !== id && !editor.initial && editor.uri === uri && editor.applicationId === state.applicationId) {
16491
+ existingEditor = editor;
16492
+ break;
16493
+ }
16492
16494
  }
16493
16495
  }
16494
16496
  let content = existingEditor ? getText$1(existingEditor) : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.71.2",
3
+ "version": "19.71.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"