Creates a new instance of the virtual-environment file plugin.
The pattern to identify lockfiles, see VirtualEnvFilePattern for the default.
ReadonlydescriptionA short description of what the plugin does.
ReadonlynameA unique, human-readable name of the plugin.
ReadonlytypeThe type of the plugin, determining when and for what purpose it is applied during the analysis.
ReadonlyversionThe version of the plugin, ideally following semver.
StaticdefaultReturns a default/dummy implementation to be used when no plugin of this type is registered or triggered.
Determine whether this plugin applies to the given file.
Processes the given file, assigning it the FileRole.VirtualEnv role. The file may still be
relevant to other plugins, so this returns the true flag to keep the loader chain going.
Run the plugin with the given context and arguments.
Tags a project's virtual-environment lockfiles (e.g.
renv.lock,rv.lock) with the FileRole.VirtualEnv role, so the version plugins that read them (renv/rv) can look them up by role instead of scanning every project file.