Clicking on files in MR sidebar opens them in read only mode

Checklist

Summary

  1. open the gitlab sidebar
  2. click on a MR either from "Issues and Merge Requests" or "For Current Branch"
  3. expand the MR
  4. click a file, especially one with comments
  5. editor opened is in read-only mode, and so you can't edit the code with the comment present

i think that read-only editors make sense when the MR you're currently viewing isn't correlated to the current branch you're on, but when you're on the branch for a given MR, you should be able to edit the editors that are opened. it's really nice to have the ability to view a comment while you're editing the code.

Screen_Recording_2022-01-13_at_12.16.35_PM

this also happens when clicking on a comment from the bottom comments bar of VS Code:

Screen_Recording_2022-01-13_at_12.18.08_PM

What is the current bug behavior?

editors opened from the gitlab sidebar are in read-only mode

What is the expected correct behavior?

editors opened from the gitlab sidebar are in editable mode

Relevant logs and/or screenshots

Possible fixes