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

Visual Studio Code projects with csproj extension can cause problems #13

Closed
pabloarista opened this issue Mar 24, 2017 · 3 comments
Closed

Comments

@pabloarista
Copy link

This extension causes problem for me when working on C# projects. Problem is that if there is a project that has a csproj file, then there is problems with the history folder.
I'm not sure if it's possible to add an exclude or maybe add this just to the description that if you don't exclude .history (or the custom location), then if you're using the C# extension the omnisharp daemon will go crazy and sometimes making the CPU max out and making the reference not working or delaying. When I added a "files.exclude" for the .history, it went away and everything works great for my C# projects. Maybe the best solution is just to inform users in the description, but if it is possible to exclude it by default, then that would work too. If anything anyone coming here can see my solution. At the very least I hope this helps someone having the same issue as me. The problem wasn't so bad, but when .NET core updated to using csproj files, then the problems got worst as all of my projects got issues.

@zabel-xyz
Copy link
Owner

This is the right solution to add a "files.exclude" for the .history in this case.
Alternatively, you can use an external path to save the history (external to the workspace)

I don't want to hide the .history folder automatically, as it may be useful to access this folder directly in vscode (when there isn't any issue).
However, I will add a note in readme to prevent someone from encountering such a problem.

zabel-xyz added a commit that referenced this issue Apr 2, 2017
@pabloarista
Copy link
Author

Great!

@parthvora25
Copy link

parthvora25 commented Jun 18, 2019

How to hide the .history folder from the workspace. I mean to ask, i want to hide it from the folder as well, as the .git is hidden by default for all projects.
By adding the above line it is only hidden from vsc file tree but not in the actual folder where it is created.

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

No branches or pull requests

3 participants