Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 5ce090b

Browse files
abeatrixakalia25
andauthored
fix event name for copy and insert events (#353)
issue: `click` event name for copy and insert actions including the context value. fix: remove text from event value ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles Some examples: // Just a doc change none - docs change // Unit tests got your back? Unit tests // Tested it manually and CI will also pitch in? Manually tested and CI --> @akalia25 can you confirm if the changes in this branch work? --------- Co-authored-by: Aditya Kalia <[email protected]>
1 parent 1766c30 commit 5ce090b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode/webviews/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export const Chat: React.FunctionComponent<React.PropsWithChildren<ChatboxProps>
8686
if (isInsert) {
8787
vscodeAPI.postMessage({ command: 'insert', text })
8888
}
89-
const eventName = isInsert ? 'insert:' : 'copy:'
90-
vscodeAPI.postMessage({ command: 'event', event: 'click', value: eventName + text })
89+
const eventName = isInsert ? 'insert' : 'copy'
90+
vscodeAPI.postMessage({ command: 'event', event: 'click', value: eventName + 'Button' })
9191
},
9292
[vscodeAPI]
9393
)

0 commit comments

Comments
 (0)