diff --git a/crates/aiken-lsp/src/utils.rs b/crates/aiken-lsp/src/utils.rs index fd6d445a..822e6d46 100644 --- a/crates/aiken-lsp/src/utils.rs +++ b/crates/aiken-lsp/src/utils.rs @@ -79,7 +79,7 @@ pub fn uri_to_module_name(uri: &url::Url, root: &Path) -> Option { .ok()? .components() .skip(1) - .map(|c| c.as_os_str().to_string_lossy()); + .map(|c| c.as_os_str().to_string_lossy().replace("-", "_")); let module_name = Itertools::intersperse(components, "/".into()) .collect::()