Commands executed in two stages add extra text
- [x] Disable all other plugins besides Copilot (required)
- [x] Screenshot of note + Copilot chat pane + dev console added (required)
Copilot version: 2.9.4
(Bug report without the above will be closed)
Describe how to reproduce Select big text in file with bunch of simillar text and make some complex "formatting" command to selection. If the resulting text is large enough, the command will be executed in 2 or more stages, adding text in parts. In such cases, extra parts of the text appear; when executed in one go, there are no problems.
Expected behavior The original text formatted according to the rules of the running command, and after it another piece of text from the file that has already been formatted
Screenshots
I am attaching a screenshot of the command execution window, the last paragraph in the original text at the top corresponds to the paragraph directly above the selected text in the screenshot. The selected text itself and everything below is extra text that was previously in the same file as the original.
A screenshot of the moment when the text was not fully processed and is still being written:
And console window (nothing happens during command execution):
Additional context During the command launch, an intermediate unfinished result is displayed, after which it is finished after some time, but extra text that was already in the file is added. Often the extra part remains unchanged, but sometimes it is "reformatted".
Extra text is already pieces of text that were previously formatted by the same command. Changing the command and adding restrictions to it does not fix the problem. Only writing follow-up instructions in command window helps.
Immediately after using the command, a warning appears in the console, but nothing else after.
Measure loop restarted more than 5 times
(anonymous) @ app.js:1
(anonymous) @ app.js:1
e.lineBlockAtHeight @ app.js:1
t.getScroll @ app.js:1
t.onMarkdownScroll @ app.js:1
t.handleScroll @ app.js:1
t.onScroll @ app.js:1
(anonymous) @ app.js:1
cc @zeroliu