Skip to content

Fix code suggestions in MR "Overview" tab

Himanshu Kapoor requested to merge 418813-ce-code-suggestions-fix into master

What does this MR do and why?

Fix code suggestions in overview tab

In rich text editor, code suggestions only work in the "Changes" tab and not the "Overview" tab. This commit fixes that.

Changelog: changed

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

Screen Recording 2023-07-17 at 23.25.58.mov

Screen Recording 2023-07-18 at 13.11.29.mov

How to set up and validate locally

  1. Go to an MR.
  2. In the changes tab, add a comment on a diff.
  3. Switch to rich text editing.
  4. Go to the overview tab.
  5. Refresh the page.
  6. Under the comment you recently added, add a reply.
  7. Click the Code suggestions icon in the toolbar. It should work fine.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #418813 (closed)

Merge request reports