mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Update instance context in ServeSession for script synchronization
- Modified the `check_tree_freshness` method to set `sync_scripts_only` in the `InstanceContext`, ensuring that the correct synchronization behavior is applied during tree freshness checks. - This change enhances the functionality of the `ServeSession` by allowing for more precise control over script synchronization.
This commit is contained in:
parent
0fb5c8776e
commit
14d4bc134d
1 changed files with 4 additions and 2 deletions
|
|
@ -547,7 +547,8 @@ impl ServeSession {
|
||||||
pub fn check_tree_freshness(&self) -> TreeFreshnessReport {
|
pub fn check_tree_freshness(&self) -> TreeFreshnessReport {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
let start_path: &Path = &self.root_project.file_location;
|
let start_path: &Path = &self.root_project.file_location;
|
||||||
let instance_context = InstanceContext::new();
|
let mut instance_context = InstanceContext::new();
|
||||||
|
instance_context.sync_scripts_only = self.sync_scripts_only();
|
||||||
|
|
||||||
let snapshot = match snapshot_from_vfs(&instance_context, &self.vfs, start_path) {
|
let snapshot = match snapshot_from_vfs(&instance_context, &self.vfs, start_path) {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
|
|
@ -610,7 +611,8 @@ impl ServeSession {
|
||||||
|
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
let start_path: &Path = &self.root_project.file_location;
|
let start_path: &Path = &self.root_project.file_location;
|
||||||
let instance_context = InstanceContext::new();
|
let mut instance_context = InstanceContext::new();
|
||||||
|
instance_context.sync_scripts_only = self.sync_scripts_only();
|
||||||
|
|
||||||
let snapshot = match snapshot_from_vfs(&instance_context, &self.vfs, start_path) {
|
let snapshot = match snapshot_from_vfs(&instance_context, &self.vfs, start_path) {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue