mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Make .meta.json changes cause scripts to be updated
This commit is contained in:
30
src/snapshots/serve_session__change_script_meta_after.snap
Normal file
30
src/snapshots/serve_session__change_script_meta_after.snap
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
source: src/serve_session.rs
|
||||
expression: "view_tree(&session.tree(), &mut redactions)"
|
||||
---
|
||||
id: id-1
|
||||
name: root
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
Path: /root
|
||||
relevant_paths:
|
||||
- /root
|
||||
children:
|
||||
- id: id-2
|
||||
name: test
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: This is a test.
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
Path: /root/test.lua
|
||||
relevant_paths:
|
||||
- /root/test.lua
|
||||
- /root/test.meta.json
|
||||
children: []
|
||||
30
src/snapshots/serve_session__change_script_meta_before.snap
Normal file
30
src/snapshots/serve_session__change_script_meta_before.snap
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
source: src/serve_session.rs
|
||||
expression: "view_tree(&session.tree(), &mut redactions)"
|
||||
---
|
||||
id: id-1
|
||||
name: root
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
Path: /root
|
||||
relevant_paths:
|
||||
- /root
|
||||
children:
|
||||
- id: id-2
|
||||
name: test
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: This is a test.
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
Path: /root/test.lua
|
||||
relevant_paths:
|
||||
- /root/test.lua
|
||||
- /root/test.meta.json
|
||||
children: []
|
||||
19
src/snapshots/serve_session__change_script_meta_patch.snap
Normal file
19
src/snapshots/serve_session__change_script_meta_patch.snap
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
source: src/serve_session.rs
|
||||
expression: redactions.redacted_yaml(changes)
|
||||
---
|
||||
- 1
|
||||
- - removed: []
|
||||
added: []
|
||||
updated:
|
||||
- id: id-2
|
||||
changed_name: ~
|
||||
changed_class_name: ~
|
||||
changed_properties: {}
|
||||
changed_metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
Path: /root/test.lua
|
||||
relevant_paths:
|
||||
- /root/test.lua
|
||||
- /root/test.meta.json
|
||||
30
src/snapshots/serve_session__script_with_meta.snap
Normal file
30
src/snapshots/serve_session__script_with_meta.snap
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
source: src/serve_session.rs
|
||||
expression: "view_tree(&session.tree(), &mut rm)"
|
||||
---
|
||||
id: id-1
|
||||
name: root
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
instigating_source:
|
||||
Path: /root
|
||||
relevant_paths:
|
||||
- /root
|
||||
children:
|
||||
- id: id-2
|
||||
name: test
|
||||
class_name: ModuleScript
|
||||
properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: This is a test.
|
||||
metadata:
|
||||
ignore_unknown_instances: true
|
||||
instigating_source:
|
||||
Path: /root/test.lua
|
||||
relevant_paths:
|
||||
- /root/test.lua
|
||||
- /root/test.meta.json
|
||||
children: []
|
||||
Reference in New Issue
Block a user