Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: invalidate snapshot when a new file is added to the package #34678
Our metadata cache invalidation strategy relies on us knowing that a file belongs to a given package. If a new file is added to an existing package, we don't invalidate the metadata for the package, since we don't yet know which package the file belongs to. We need to do this invalidation correctly.
I think they are ultimately in the same realm, particularly because when you start watching changed files, you get a notification that a file has been created, as well as a