mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 14:45:56 +00:00
Stop redundantly adding ignore paths when starting ServeSession
This commit is contained in:
@@ -17,7 +17,7 @@ use crate::{
|
|||||||
session_id::SessionId,
|
session_id::SessionId,
|
||||||
snapshot::{
|
snapshot::{
|
||||||
apply_patch_set, compute_patch_set, AppliedPatchSet, InstanceContext,
|
apply_patch_set, compute_patch_set, AppliedPatchSet, InstanceContext,
|
||||||
InstancePropertiesWithMeta, PatchSet, PathIgnoreRule, RojoTree,
|
InstancePropertiesWithMeta, PatchSet, RojoTree,
|
||||||
},
|
},
|
||||||
snapshot_middleware::{snapshot_from_vfs, SnapshotError},
|
snapshot_middleware::{snapshot_from_vfs, SnapshotError},
|
||||||
};
|
};
|
||||||
@@ -114,17 +114,7 @@ impl ServeSession {
|
|||||||
|
|
||||||
let root_id = tree.get_root_id();
|
let root_id = tree.get_root_id();
|
||||||
|
|
||||||
let mut instance_context = InstanceContext::default();
|
let instance_context = InstanceContext::default();
|
||||||
|
|
||||||
let rules = root_project
|
|
||||||
.glob_ignore_paths
|
|
||||||
.iter()
|
|
||||||
.map(|glob| PathIgnoreRule {
|
|
||||||
glob: glob.clone(),
|
|
||||||
base_path: root_project.folder_location().to_path_buf(),
|
|
||||||
});
|
|
||||||
|
|
||||||
instance_context.add_path_ignore_rules(rules);
|
|
||||||
|
|
||||||
log::trace!("Generating snapshot of instances from VFS");
|
log::trace!("Generating snapshot of instances from VFS");
|
||||||
let snapshot = snapshot_from_vfs(&instance_context, &vfs, &start_path)?
|
let snapshot = snapshot_from_vfs(&instance_context, &vfs, &start_path)?
|
||||||
|
|||||||
Reference in New Issue
Block a user