Why does vs code show so many untracked files whenever I try to see the code for a built-in flutter widget?
Solution 1
You can right click on the flutter
repo (the one above the git commit message text field) and close repository
.
Solution 2
Disclaimer: I encountered the same problem and found this question. Then I saw it's unanswered, so I raised a bounty. Now, 5 hours before the bounty ends, and without any extraordinary answers here, I tried again to solve it by myself, and thanks god I found it:
VS code has an option to hide a specific repository non-related to a .gitignore
file existence nor its contents.
The steps are:
-
Files
➜Preferences
➜Settings
- ➜
User
/Workspace
, depends on the scope needed to be applied to. - Search for
Git: Ignored Repositories
. - Append your local
flutter
repository location, in my case:c:\flutter
- Close it manually for the last time, either by restarting VS code or by right clicking it and pressing
close repository
.
Biplab Dutta
Updated on December 02, 2022Comments
-
Biplab Dutta over 1 year
While working in Flutter, sometimes I wish to see how a certain built-in or third-party widget works internally. And when I do ctrl+click on my vs code on that widget and hope to see its code, vs code then suddenly shows me like 140-150 untracked files. It only happens when I try to view the code for built-in or third-party widgets. Help me!!!! Thanks...
-
Dorad about 2 yearsSorry @rapaterno, it comes back again and again after closing it