@lvce-editor/editor-worker 19.78.4 → 19.78.5

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/diff-sdk.js CHANGED
@@ -26110,6 +26110,7 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
26110
26110
  syntaxHighlightingCacheEnabled,
26111
26111
  tabSize
26112
26112
  } = await getEditorPreferences(state.applicationId);
26113
+ const isMonospaceFont = fontFamily === 'Fira Code' || fontFamily === "'Fira Code'";
26113
26114
  // TODO support overwriting language id by setting it explicitly or via settings
26114
26115
  const charWidth = await measureCharacterWidth(fontWeight, fontSize, fontFamily, letterSpacing);
26115
26116
  const languages = await getLanguages(platform, assetDir, state.applicationId);
@@ -26140,6 +26141,7 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
26140
26141
  isAutoClosingBracketsEnabled,
26141
26142
  isAutoClosingQuotesEnabled,
26142
26143
  isAutoClosingTagsEnabled,
26144
+ isMonospaceFont,
26143
26145
  isQuickSuggestionsEnabled,
26144
26146
  languageId: computedLanguageId,
26145
26147
  letterSpacing,
@@ -26535,6 +26535,7 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
26535
26535
  syntaxHighlightingCacheEnabled,
26536
26536
  tabSize
26537
26537
  } = await getEditorPreferences(state.applicationId);
26538
+ const isMonospaceFont = fontFamily === 'Fira Code' || fontFamily === "'Fira Code'";
26538
26539
  // TODO support overwriting language id by setting it explicitly or via settings
26539
26540
  const charWidth = await measureCharacterWidth(fontWeight, fontSize, fontFamily, letterSpacing);
26540
26541
  const languages = await getLanguages(platform, assetDir, state.applicationId);
@@ -26565,6 +26566,7 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
26565
26566
  isAutoClosingBracketsEnabled,
26566
26567
  isAutoClosingQuotesEnabled,
26567
26568
  isAutoClosingTagsEnabled,
26569
+ isMonospaceFont,
26568
26570
  isQuickSuggestionsEnabled,
26569
26571
  languageId: computedLanguageId,
26570
26572
  letterSpacing,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.78.4",
3
+ "version": "19.78.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"