Prevent explain this code action from appearing when non-code content is selected in markdown preview
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do and why?
Closes #443394 (closed)
As suggested by @jerasmus, I have added the fix to prevent explain this code action by Genie from appearing in markdown preview when non-code content is selected. Throught this MR, I tried to make this icon appear only when we select code in markdown preview.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Edited by Sujal Gupta