Skip to content

Commit

Permalink
removing copy and insert for user code (#753)
Browse files Browse the repository at this point in the history
Co-authored-by: amitjoshi <[email protected]>
  • Loading branch information
amitjoshi438 and amitjoshi authored Oct 26, 2023
1 parent 5228bf8 commit 7a1f049
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/copilot/assets/scripts/copilot.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@

codeLineCount += countLines(codeBlock);

codeDiv.appendChild(createActionWrapper(codeBlock));
if(!isUserCode) {
codeDiv.appendChild(createActionWrapper(codeBlock));
}

const preFormatted = document.createElement("pre");
const codeSnip = document.createElement("code");
Expand Down

0 comments on commit 7a1f049

Please sign in to comment.