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

Disable git when there is no workspace #63707

Closed
yumeyao opened this issue Nov 24, 2018 · 2 comments
Closed

Disable git when there is no workspace #63707

yumeyao opened this issue Nov 24, 2018 · 2 comments
Assignees

Comments

@yumeyao
Copy link

yumeyao commented Nov 24, 2018

Situation:

  1. I'm working on a workspace that is on a remote file system (NFS/samba).
  2. I have multiple displays and I want multiple vscode windows.
  3. I know there is split window option but it simply sucks if you use it across multiple displays.
  4. I want 2 windows opening some files in the same project/workspace

Now since whenever you open separate windows, the processes are isolated.
So to achieve 3., I need to prepare Window 1 with the workspace, and prepare Window 2 with empty workspace, then drag & drop some files from Window 1 into Window 2.

Now the issue is, Window 2 is still trying to enable git on it. If the project is quite large, it makes the windows extremely slow and sometimes irresponsible because Window 1 and 2 are running git simultaneously, this behavior is stupid as ass.
(and in my case, remote FS makes it even worse)

AFAIC, there're at least 3 ways to solve this issue, and actually I think each should be implemented:

  1. Disable git when there is no workspace. - Window 2 never bothers to run git any more
  2. single-workspace/environment-multiple-window mode. just advanced split window which enables you really split the window out. (Allow for floating windows #10121)
  3. 'temporary settings' or 'process-scope settings' - now we have 'user settings', 'workspace settings', but we do not have 'process-scope settings'. 'process-scope settings' is quite native for classic desktop applications. This would simply allows you disable git in which window you don't want git to be enabled.

since option 2 (#10121) seems a large project, option 3 seems a large project too. Is there just any chance to implement option 1? it can be an option in settings like: git.enabled = whenWorkspaceOpened.

@vscodebot vscodebot bot added the git GIT issues label Nov 24, 2018
@joaomoreno joaomoreno added this to the November 2018 milestone Nov 26, 2018
@joaomoreno joaomoreno added the feature-request Request for new features or functionality label Nov 26, 2018
@joaomoreno
Copy link
Member

Great description and summary. I like the setting idea, lowest hanging fruit which would help you. Let's do that.

@joaomoreno
Copy link
Member

Actually, there's already a setting for this, tho I confess to be pretty hard to come by:

git.autoRepositoryDetection = subFolders

That way, VS Code won't automatically detect repositories by looking at mere open files.

@joaomoreno joaomoreno removed this from the November 2018 milestone Dec 3, 2018
@joaomoreno joaomoreno removed feature-request Request for new features or functionality git GIT issues labels Dec 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 17, 2019
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