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

DEV2-3931 add quick fix action #652

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

yonip23
Copy link
Contributor

@yonip23 yonip23 commented Oct 8, 2023

Add a "Fix using Tabnine" quick-action
Screenshot from 2023-10-08 15-50-31

Details

  1. This action opens the chat window and sends it the text "/fix-code".
  2. This action only appears if there's at least one warning/error level diagnostic in the selected code range, or - if no code is selected - on the PSI element the cursor is on.

@yonip23 yonip23 requested a review from a team as a code owner October 8, 2023 12:57
@@ -0,0 +1,54 @@
package com.tabnineCommon.chat.actions.common
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extracted logic from AskChatAction, to be used in TabnineQuickFixAction (and potentially future actions) as well.

* DEV2-3931 fix chat first loading

* remove redundant arg
Copy link
Contributor

@dimacodota dimacodota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yonip23 yonip23 merged commit 1f840f8 into master Oct 10, 2023
9 checks passed
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.

2 participants