mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Remove NetworkClient from visibleServices in multiple snapshot test files
This commit is contained in:
parent
76e4bc4f25
commit
5298664bad
23 changed files with 43 additions and 38 deletions
|
|
@ -70,10 +70,13 @@ fn middleware_for_script(inst: &Instance) -> Middleware {
|
|||
.and_then(|db| db.enums.get("RunContext"))
|
||||
.map(|e| &e.items);
|
||||
|
||||
let run_context_value = inst.properties.get(&ustr("RunContext")).and_then(|v| match v {
|
||||
Variant::Enum(e) => Some(e.to_u32()),
|
||||
_ => None,
|
||||
});
|
||||
let run_context_value = inst
|
||||
.properties
|
||||
.get(&ustr("RunContext"))
|
||||
.and_then(|v| match v {
|
||||
Variant::Enum(e) => Some(e.to_u32()),
|
||||
_ => None,
|
||||
});
|
||||
|
||||
if let (Some(enums), Some(value)) = (run_context_enums, run_context_value) {
|
||||
for (name, &enum_value) in enums {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,11 @@ pub fn syncback_rbxm<'sync>(
|
|||
/// Clones a subtree from the source WeakDom, filtering out instances that match
|
||||
/// the provided ignoreTrees glob patterns.
|
||||
/// Each entry contains both the compiled Glob and the original pattern string.
|
||||
pub fn clone_tree_filtered(source: &WeakDom, root_ref: Ref, ignore_globs: &[(Glob, String)]) -> WeakDom {
|
||||
pub fn clone_tree_filtered(
|
||||
source: &WeakDom,
|
||||
root_ref: Ref,
|
||||
ignore_globs: &[(Glob, String)],
|
||||
) -> WeakDom {
|
||||
let root_inst = source.get_by_ref(root_ref).expect("root ref should exist");
|
||||
|
||||
// Create a new tree with the root instance
|
||||
|
|
@ -104,7 +108,9 @@ fn add_children_filtered(
|
|||
let child_path = inst_path(source, child_ref);
|
||||
|
||||
// Check if this child should be ignored
|
||||
let should_ignore = ignore_globs.iter().any(|(glob, _)| glob.is_match(&child_path));
|
||||
let should_ignore = ignore_globs
|
||||
.iter()
|
||||
.any(|(glob, _)| glob.is_match(&child_path));
|
||||
|
||||
if should_ignore {
|
||||
log::debug!("Filtering out {child_path} from rbxm due to ignoreTrees pattern");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue