@harborclient/sdk 1.7.0 → 1.7.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderHighlightedPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/CodeEditor/renderHighlightedPlaceholder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderHighlightedPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/CodeEditor/renderHighlightedPlaceholder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,8BAA8B,CAAC;AAGpG;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAyDD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,mCAAmC,GAC3C,WAAW,CAiDb"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { javascript } from '@codemirror/lang-javascript';
|
|
2
|
+
import { forceParsing } from '@codemirror/language';
|
|
2
3
|
import { EditorState } from '@codemirror/state';
|
|
3
4
|
import { EditorView } from '@codemirror/view';
|
|
4
5
|
import { createSlashCommandHighlighter } from './slashCommandHighlighter.js';
|
|
@@ -73,6 +74,9 @@ export function renderHighlightedPlaceholderDom(text, options) {
|
|
|
73
74
|
}),
|
|
74
75
|
parent: host
|
|
75
76
|
});
|
|
77
|
+
// Parsing can yield under heavy parallel test load; wait so token classes exist
|
|
78
|
+
// before we clone the offscreen DOM into the cached placeholder node.
|
|
79
|
+
forceParsing(view, view.state.doc.length, 5000);
|
|
76
80
|
const wrap = document.createElement('span');
|
|
77
81
|
wrap.className = 'cm-placeholder cm-syntax-placeholder';
|
|
78
82
|
wrap.style.pointerEvents = 'none';
|