Clicking on files in MR sidebar opens them in read only mode
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: v3.40.1
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.63.2
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: happens on
gitlab.com
- GitLab version: happens on
Summary
- open the gitlab sidebar
- click on a MR either from "Issues and Merge Requests" or "For Current Branch"
- expand the MR
- click a file, especially one with comments
- 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