fix polluting the command palette with global steel functions

pull/8675/merge^2
Matt Paras 2025-05-18 19:30:44 -07:00
parent d04c95dc7f
commit e6b0badcd0
3 changed files with 9 additions and 7 deletions

10
Cargo.lock generated
View File

@ -3137,7 +3137,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]] [[package]]
name = "steel-core" name = "steel-core"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0"
dependencies = [ dependencies = [
"abi_stable", "abi_stable",
"anyhow", "anyhow",
@ -3189,7 +3189,7 @@ dependencies = [
[[package]] [[package]]
name = "steel-derive" name = "steel-derive"
version = "0.5.0" version = "0.5.0"
source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -3199,7 +3199,7 @@ dependencies = [
[[package]] [[package]]
name = "steel-doc" name = "steel-doc"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0"
dependencies = [ dependencies = [
"steel-core", "steel-core",
] ]
@ -3207,7 +3207,7 @@ dependencies = [
[[package]] [[package]]
name = "steel-gen" name = "steel-gen"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0"
dependencies = [ dependencies = [
"codegen", "codegen",
"serde", "serde",
@ -3216,7 +3216,7 @@ dependencies = [
[[package]] [[package]]
name = "steel-parser" name = "steel-parser"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/mattwparas/steel.git#54c703795bf0e960674dce5091ed377fa4e3e1cb" source = "git+https://github.com/mattwparas/steel.git#e308663bcb50275288261a37659c9562909246e0"
dependencies = [ dependencies = [
"compact_str", "compact_str",
"fxhash", "fxhash",

View File

@ -77,7 +77,7 @@ fn setup() -> Engine {
let engine = steel::steel_vm::engine::Engine::new(); let engine = steel::steel_vm::engine::Engine::new();
// Any function after this point can be used for looking at "new" functions // Any function after this point can be used for looking at "new" functions
GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap(); // GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap();
let controller = engine.get_thread_state_controller(); let controller = engine.get_thread_state_controller();
let running = Arc::new(AtomicBool::new(false)); let running = Arc::new(AtomicBool::new(false));
@ -3504,6 +3504,8 @@ fn configure_engine_impl(mut engine: Engine) -> Engine {
// Create directory since we can't do that in the current state // Create directory since we can't do that in the current state
engine.register_fn("hx.create-directory", create_directory); engine.register_fn("hx.create-directory", create_directory);
GLOBAL_OFFSET.set(engine.readable_globals(0).len()).unwrap();
engine engine
} }

2
steel

@ -1 +1 @@
Subproject commit 54c703795bf0e960674dce5091ed377fa4e3e1cb Subproject commit e308663bcb50275288261a37659c9562909246e0