Load user plugins on startup instead of lazily at snapshot time

This commit is contained in:
Lucien Greathouse
2019-10-12 23:27:12 -07:00
parent d1887c6cd3
commit 7077f0f1f3
3 changed files with 37 additions and 62 deletions

View File

@@ -41,8 +41,7 @@ pub fn start<F: VfsFetcher>(
// If the project file defines no plugins, then there's no need to
// initialize the snapshot plugin context.
if !project.plugins.is_empty() {
snapshot_context.plugin_context =
Some(SnapshotPluginContext::new(project.plugins.clone()));
snapshot_context.plugin_context = Some(SnapshotPluginContext::new(&project.plugins));
}
}