Skip to content

Commit 6765b06

Browse files
authored
Update web_src/js/features/comp/TextExpander.ts
1 parent 5f3d83f commit 6765b06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/comp/TextExpander.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export function initTextExpander(expander: TextExpanderElement) {
6565
// To reproduce, comment out the "shouldShowIssueSuggestions" check, use the "await sleep" below,
6666
// then use content "close #20\nclose #20\close #20", keep changing the last line `#20` part from the end (including removing the `#`)
6767
// There will be a JS error: Uncaught (in promise) IndexSizeError: Failed to execute 'setStart' on 'Range': The offset 28 is larger than the node's length (27).
68+
6869
// check the input before the request, to avoid emitting empty query to backend (still related to the upstream bug)
6970
if (!shouldShowIssueSuggestions()) return {matched: false};
7071
// await sleep(Math.random() * 1000); // help to reproduce the text-expander bug

0 commit comments

Comments
 (0)