Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't stop Edit Sessions #162098

Closed
gregvanl opened this issue Sep 28, 2022 · 11 comments
Closed

Can't stop Edit Sessions #162098

gregvanl opened this issue Sep 28, 2022 · 11 comments
Assignees

Comments

@gregvanl
Copy link

Testing #161860

I've gotten into a state where my Source Control view is showing two repositories even though I've just opened code-insiders in one.

image

Trying Turn Off Edit Sessions doesn't seem to help.

Even odder, there are no stored Edit Sessions

image

@gregvanl
Copy link
Author

Signing out from GitHub doesn't seem to help either

@gregvanl
Copy link
Author

gregvanl commented Sep 28, 2022

I found the "Close repository" command which removed the vscode-docs repo from the Source Control view.
I guess I'm surprised it was added when I opened the Edit Sessions view

@joyceerhl
Copy link
Contributor

Did you happen to use the Continue On > Clone Locally flow at some point? Opening the Edit Sessions view should not have anything to do with this.

@gregvanl
Copy link
Author

Hmm, the second repo came back when I reloaded the window.
I see "Resuming edit session" on the Status bar

@gregvanl
Copy link
Author

Nope, only playing with Edit sessions.

@joyceerhl
Copy link
Contributor

"Resuming edit session" will pretty much appear all the time when you first open a window unless you explicitly disable it, but it doesn't do anything with checking out git repositories. Is there anything in the Git or Log (Edit Sessions) channel, and do you recall what you've tried with Edit Sessions so far?

@gregvanl
Copy link
Author

I was working with Edit Sessions in the vscode-docs repo and then I switched to working in vscode-website. The Edit Sessions view correctly (I believe) showed sessions from both repositories.
Not sure why the vscode-docs repo was added to the Source Control view

@gregvanl
Copy link
Author

OK, might have been a red herring.
The vscode-website repo clones the vscode-docs repo if you build the website locally. The vscode-docs repo shown in the Source Control view is for that sub-repo.
What is odd is that Stable doesn't show the sub-repo and I don't think I've noticed that before with the 1.72 Insiders but something might have changed recently to include sub-repos in the Source Control view?

@gregvanl
Copy link
Author

git.autoRepositoryDetection controls the behavior. If I set it to false, VS Code doesn't pick up the sub-repo.
I wonder if an issue was fixed recently with repo detection

@gregvanl
Copy link
Author

Closing this as not related to Edit Sessions. Seems to be a change in sub-repo detection. I'll follow up with Lad

@joyceerhl
Copy link
Contributor

joyceerhl commented Sep 28, 2022

I wonder if an issue was fixed recently with repo detection

Yeah this landed via #159291

@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants