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

[Feature] Support ignoring syncing certain paths #641

Open
mydpy opened this issue Apr 6, 2023 · 7 comments
Open

[Feature] Support ignoring syncing certain paths #641

mydpy opened this issue Apr 6, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@mydpy
Copy link

mydpy commented Apr 6, 2023

I'd like to use .gitignore-style syntax to specify which files should not be included in the directory sync (I am using workspace sync in my extension settings).

Context: I have a project with a large dataset of pdf files that I do not ever want to sync to a remote repository. Or if I'm working with a project that generates files I do not want them to be automatically synced to the workspace.

This triggers other errors, including delays executing workloads.

@pietern
Copy link
Contributor

pietern commented Apr 11, 2023

Both local and system-wide .gitignore files should be respected when doing a directory sync.

If you have a .gitignore file but its contents is not respected when doing a sync, could you provide more details about your setup (e.g. which directories you want to ignore, (subset of) `.gitignore contents, their paths, etc).

Thanks.

@mydpy
Copy link
Author

mydpy commented Apr 11, 2023

I see. I am developing on a large(r) monolith whose file size exceeds the current maximum. In order for me to sync this project using the vscode extension I need to add certain files that I do not want to sync to my .gitignore file. This allows the directory sync to succeed. However, this introduces another issue: I occasionally need to develop in areas of the monolith that I would like to exclude in the directory sync. So I need to remove them from the .gitignore file or add them directly.

@pietern
Copy link
Contributor

pietern commented Apr 14, 2023

If I understand correctly you would need a separate mechanism from .gitignore to control which subtrees are synchronized (e.g. through inclusion/exclusion) so you stay within file size / file count limits.

What limit do you run into specifically?

@kartikgupta-db kartikgupta-db added the enhancement New feature or request label Jun 21, 2023
@colinalexander
Copy link

I have a similar issue with a monorepo. I have a repo .gitignore as well as one in my project's local folder. The local one just has a single line for the folder I am trying to exclude, i.e. data/. This is a rather large file that is currently syncing even though I would like to exclude it.

If you require any additional information, please let me know.

Thank you!

@cf-dtrznadel
Copy link

I have similar issue. I can not sunc my repo with error message Client.Timeout exceeded while awaiting headers

@mgyucht
Copy link
Contributor

mgyucht commented Aug 16, 2023

Are you looking for includes/excludes beyond what is specified in your .gitignore files? We already support ignoring syncs for any files matching patterns on any .gitignore files.

@colinalexander
Copy link

I have a monorepo with multiple gitignore files. My project gitignore file just has one item data/. This folder was being synchronized despite being gitignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants