@lvce-editor/editor-worker 19.55.0 → 19.55.1

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.
@@ -4636,6 +4636,7 @@ const getLine = (lineState, embeddedResults, tokenMap, lineLength) => {
4636
4636
  };
4637
4637
  const getMinimapLines = async (editor, syncIncremental) => {
4638
4638
  const {
4639
+ languageId,
4639
4640
  lines
4640
4641
  } = editor;
4641
4642
  if (lines.length === 0) {
@@ -4646,8 +4647,7 @@ const getMinimapLines = async (editor, syncIncremental) => {
4646
4647
  await loadTokenizers(result.tokenizersToLoad);
4647
4648
  result = await getTokensViewport2(editor, 0, lines.length, syncIncremental);
4648
4649
  }
4649
- const tokenizer = get$4(editor.tokenizerId);
4650
- const tokenMap = tokenizer.TokenMap || {};
4650
+ const tokenMap = get$5(languageId);
4651
4651
  return result.tokens.map((lineState, index) => getLine(lineState, result.embeddedResults, tokenMap, lines[index].length));
4652
4652
  };
4653
4653
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.55.0",
3
+ "version": "19.55.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"