Add *.lscache to VisualStudio.gitignore#4839
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new ignore pattern to the repository’s Visual Studio-focused .gitignore rules to prevent C# Dev Kit’s language service cache files (*.csproj.lscache) from being committed.
Changes:
- Add
*.lscacheignore entry for VS Code C# Dev Kit cache artifacts.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| *.msp | ||
|
|
||
| # VS Code C# Dev Kit | ||
| *.lscache |
There was a problem hiding this comment.
I'd ask that this line is commented out by default and an explanation for why you'd want them ignored included, based on this issue by @JakeRadMSFT: microsoft/vscode-dotnettools#2961
From the issue:
What if I don't want them in source control?
We'd encourage you to try checking them in and experience the benefits, but we understand not every team will want that. You can add .lscache to your .gitignore if you prefer. You'll still get the per-machine caching benefits (warm starts when reopening the same project), you just won't get the cross-machine and branch-switching benefits. We're exploring configuration options to give users more control here.
|
I'm open to discussion on this one, but I do think we shouldn't ignore any files by default that the maintainers of the tooling intend to be included in source control. |
|
This file contains a lot of local things such as |
Reasons for making this change
The C# Dev Kit create
*.csproj.lscachein new version.Links to documentation supporting these rule changes
Said by
*.csproj.lscacheMerge and Approval Steps