mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 15:16:07 +00:00
Mark init.meta.json as relevant path for directories
This commit is contained in:
@@ -51,7 +51,7 @@ impl SnapshotMiddleware for SnapshotDir {
|
|||||||
snapshot_id: None,
|
snapshot_id: None,
|
||||||
metadata: InstanceMetadata {
|
metadata: InstanceMetadata {
|
||||||
instigating_source: Some(entry.path().to_path_buf().into()),
|
instigating_source: Some(entry.path().to_path_buf().into()),
|
||||||
relevant_paths: vec![entry.path().to_path_buf()],
|
relevant_paths: vec![entry.path().to_path_buf(), meta_path.clone()],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
name: Cow::Owned(instance_name),
|
name: Cow::Owned(instance_name),
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ metadata:
|
|||||||
Path: /foo
|
Path: /foo
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /foo
|
- /foo
|
||||||
|
- /foo/init.meta.json
|
||||||
name: foo
|
name: foo
|
||||||
class_name: Folder
|
class_name: Folder
|
||||||
properties: {}
|
properties: {}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ metadata:
|
|||||||
Path: /foo
|
Path: /foo
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /foo
|
- /foo
|
||||||
|
- /foo/init.meta.json
|
||||||
name: foo
|
name: foo
|
||||||
class_name: Folder
|
class_name: Folder
|
||||||
properties: {}
|
properties: {}
|
||||||
@@ -20,6 +21,7 @@ children:
|
|||||||
Path: /foo/Child
|
Path: /foo/Child
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /foo/Child
|
- /foo/Child
|
||||||
|
- /foo/Child/init.meta.json
|
||||||
name: Child
|
name: Child
|
||||||
class_name: Folder
|
class_name: Folder
|
||||||
properties: {}
|
properties: {}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ metadata:
|
|||||||
Path: /root
|
Path: /root
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /root
|
- /root
|
||||||
|
- /root/init.meta.json
|
||||||
children:
|
children:
|
||||||
- id: id-2
|
- id: id-2
|
||||||
name: test
|
name: test
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ metadata:
|
|||||||
Path: /root
|
Path: /root
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /root
|
- /root
|
||||||
|
- /root/init.meta.json
|
||||||
children:
|
children:
|
||||||
- id: id-2
|
- id: id-2
|
||||||
name: test
|
name: test
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
source: src/serve_session.rs
|
source: src/serve_session.rs
|
||||||
expression: tree_value
|
expression: "view_tree(&session.tree(), &mut rm)"
|
||||||
---
|
---
|
||||||
id: id-1
|
id: id-1
|
||||||
name: foo
|
name: foo
|
||||||
@@ -12,4 +12,5 @@ metadata:
|
|||||||
Path: /foo
|
Path: /foo
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /foo
|
- /foo
|
||||||
|
- /foo/init.meta.json
|
||||||
children: []
|
children: []
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ metadata:
|
|||||||
Path: /foo/default.project.json
|
Path: /foo/default.project.json
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /foo/src
|
- /foo/src
|
||||||
|
- /foo/src/init.meta.json
|
||||||
- /foo/default.project.json
|
- /foo/default.project.json
|
||||||
children:
|
children:
|
||||||
- id: id-2
|
- id: id-2
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ metadata:
|
|||||||
Path: /root
|
Path: /root
|
||||||
relevant_paths:
|
relevant_paths:
|
||||||
- /root
|
- /root
|
||||||
|
- /root/init.meta.json
|
||||||
children:
|
children:
|
||||||
- id: id-2
|
- id: id-2
|
||||||
name: test
|
name: test
|
||||||
|
|||||||
Reference in New Issue
Block a user