From a6618dc01c890363bdbcc5f689389cbca1e8fb75 Mon Sep 17 00:00:00 2001 From: sigmaSd Date: Sat, 1 Oct 2022 19:02:25 +0100 Subject: lsp: use deno:/asset instead of deno:asset (#16023) Make offering "virtual documents" via the lsp easier to parse. `deno:` can be ambiguous to parse by editors (can conflict with linux paths) Neovim recently landed a PR https://github.com/neovim/neovim/pull/19797 that allows it to parse `scheme:/` this PR should make deno lsp work correctly in neovim --- cli/lsp/urls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp') diff --git a/cli/lsp/urls.rs b/cli/lsp/urls.rs index e30a3c5d6..9b14098ae 100644 --- a/cli/lsp/urls.rs +++ b/cli/lsp/urls.rs @@ -101,7 +101,7 @@ impl LspUrlMap { specifier.clone() } else { let specifier_str = if specifier.scheme() == "asset" { - format!("deno:asset{}", specifier.path()) + format!("deno:/asset{}", specifier.path()) } else if specifier.scheme() == "data" { let data_url = DataUrl::process(specifier.as_str()) .map_err(|e| uri_error(format!("{:?}", e)))?; -- cgit v1.2.3