Steps to Reproduce:
Assume we have a working branch named 'feature-branch'
git checkout master)git checkout feature-branch.Now we are in review mode again.
If I'm understanding this correctly, this is by design. Since the branch feature-branch is associated with a PR, the extension will switch into review mode whenever you check it out, either from the Description page or the command line.
But it wasn鈥檛 in review mode to start with. Although, it could be because I already had the working branch checked out when starting VS Code.
So, I have run into a similar issue. When I installed the extension, I was in the middle of making changes to resolve review feedback on an existing PR, so I had that PR's branch checked out. I made the mistake of clicking the "Check out" button on my PR within VS Code. When I realized I couldn't actually make my fixes while in review mode, I clicked "Exit Review Mode".
This asks me what branch I want to switch to. I don't want to switch branches. I need to continue working on the one I'm in already. Choosing the current branch from the list disables the "Exit Review Mode" button but doesn't do anything else that I can see. Upon giving up and restarting VS Code, I find that I'm still in review mode. If I instead choose another branch, like master, I wind up out of review mode and on that branch.
But then if I checkout my branch again, I'm back in review mode.
As far as I can see, there is no way to escape review mode now. I'm stumped, and am not sure how to fix this so I can resume work on my code...
Disable the extension as a temporary workaround? :thinking:
@johlju Sure, get all clever and sci-fi. 馃榿
There are multiple duplicate issues like this, probably one that I opened too. And this is one of the reasons I'm not using this extension after trying it.
The way "Exit Review Mode" works is confusing, it doesn't exit review mode, it just switches branches. Meaning that once you switch back to the branch you will be in review mode again as that state in the extension is left behind.
In my opinion, it should really exit review mode, returning to the state the extension is in on startup. Switching branches being an optional convenience for the use case of checking out a branch solely for looking at its PR and not a requirement to exit review mode.
You might enter review mode from creating a PR on your own branch, or to look at comments on it to fix them, you don't necessarily want to switch branches when done, just turn off review mode (The review gutter, etc.).
I would like to have a way to leave review mode. Now I am forced into it for a branch I switch to if it happens to be a PR too. But this PR I just created for myself, not for someone to review.
E.g. I see the review decorations now in the editor without having a way to turn that off:

i want disable the start discussion too
Most helpful comment
There are multiple duplicate issues like this, probably one that I opened too. And this is one of the reasons I'm not using this extension after trying it.
The way "Exit Review Mode" works is confusing, it doesn't exit review mode, it just switches branches. Meaning that once you switch back to the branch you will be in review mode again as that state in the extension is left behind.
In my opinion, it should really exit review mode, returning to the state the extension is in on startup. Switching branches being an optional convenience for the use case of checking out a branch solely for looking at its PR and not a requirement to exit review mode.
You might enter review mode from creating a PR on your own branch, or to look at comments on it to fix them, you don't necessarily want to switch branches when done, just turn off review mode (The review gutter, etc.).