rename workspace function

pull/8675/merge^2
Matt Paras 2025-05-19 08:16:20 -07:00
parent 94927711b4
commit c0bb7c29cd
1 changed files with 6 additions and 0 deletions

View File

@ -2614,6 +2614,7 @@ fn configure_lsp_globals() {
"log::info!",
"fuzzy-match",
"helix-find-workspace",
"find-workspace",
"doc-id->usize",
"new-component!",
"acquire-context-lock",
@ -3252,6 +3253,11 @@ fn configure_engine_impl(mut engine: Engine) -> Engine {
helix_core::find_workspace().0.to_str().unwrap().to_string()
});
// TODO: Deprecate the above
engine.register_fn("find-worksapce", || {
helix_core::find_workspace().0.to_str().unwrap().to_string()
});
engine.register_fn("doc-id->usize", document_id_to_usize);
// TODO: Remove that this is now in helix/core/misc