mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
fix bug in hooks...
...that prevented the language server from seing inner statements of functions
This commit is contained in:
parent
d3164254b3
commit
d70e7ec066
@ -27,7 +27,9 @@ impl MersStatement for Chain {
|
|||||||
return Err("can't init to statement type Chain".to_string().into());
|
return Err("can't init to statement type Chain".to_string().into());
|
||||||
}
|
}
|
||||||
let prev_enable_hooks = info.global.enable_hooks;
|
let prev_enable_hooks = info.global.enable_hooks;
|
||||||
|
if self.as_part_of_include.is_some() {
|
||||||
info.global.enable_hooks = false;
|
info.global.enable_hooks = false;
|
||||||
|
}
|
||||||
let arg = self.first.check(info, None)?;
|
let arg = self.first.check(info, None)?;
|
||||||
let func = self.chained.check(info, None)?;
|
let func = self.chained.check(info, None)?;
|
||||||
info.global.enable_hooks = prev_enable_hooks;
|
info.global.enable_hooks = prev_enable_hooks;
|
||||||
|
Loading…
Reference in New Issue
Block a user