Follow-up from "Use Duo Chat for explain code feature"

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Work on this issue
  • Close this issue

Summary

This is a follow-up from !143217 (merged) to pass contentAboveCursor and contentBelowCursor in the GraphQL mutation when using the Explain Code feature. This should put is closer to how explain code works in VSCode.

The following discussion from !143217 (merged) should be addressed:

  • @dmishunov started a discussion:

    note: The chat action also accepts contentAboveCursor and contentBelowCursor as part of the currentFileprop as defined in https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/graphql/types/ai/current_file_input_type.rb. Do we plan on including those as well to have the feature 100% identical to /explain in VSCode?

Edited Jun 19, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading