Closed nang-dev closed 3 months ago
Relevant code block
`async getTerminalContents(commands: number = -1): Promise
if (tempCopyBuffer === terminalContents) {
// This means there is no terminal open to select text from
return "";
}
// Sometimes the above won't successfully separate by command, so we attempt manually
const lines = terminalContents.split("\n");
const lastLine = lines.pop()?.trim();
if (lastLine) {
let i = lines.length - 1;
while (i >= 0 && !lines[i].trim().startsWith(lastLine)) i--;
terminalContents = lines.slice(i).join("\n");
}
return terminalContents;
}`
I fixed :D
Describe the bug
Should be:
but is:
How to reproduce
Run python3 extensions/vscode/pearai_tutorial.py and then do cmd+shift+R on continue, then using pear
Expected behavior
Pear should copy the entire error message into the chat log
Clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional information
🧙 Add any other context about the problem here.