Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keyDown:Paste:clicked events #2293

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Fix keyDown:Paste:clicked events #2293

merged 2 commits into from
Dec 12, 2023

Conversation

philipp-spiess
Copy link
Contributor

Fixes #2292

Previously, detecting pastes into the document required the inline chat controller to be listening for changes. Since that was removed in #2079, we no longer detected pasts. This brings this behavior back via a dedicated event listener we add in main.

Test plan

  • Ask cody to gen code
  • Copy it
  • Paste it into a doc
Screenshot 2023-12-12 at 11 22 37

@philipp-spiess philipp-spiess requested review from chenkc805 and a team December 12, 2023 10:24
@philipp-spiess
Copy link
Contributor Author

The event name doesn't really make sense (you can't click a keydown lol) but let's keep backward compat.

@philipp-spiess philipp-spiess enabled auto-merge (squash) December 12, 2023 10:26
@philipp-spiess philipp-spiess merged commit f6a9ffa into main Dec 12, 2023
13 checks passed
@philipp-spiess philipp-spiess deleted the ps/fix-paste-events branch December 12, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: CodyVSCodeExtension:keyDown:Paste:clicked no longer fires
2 participants