Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(uri): don't use full path for custom schema
deno lsp uses a custom schema `deno:` `uri_from_bufnr` returns the full path of the buf file but this doesn't work with custom schema This fixes the last remaining bug here <neovim/nvim-lspconfig#2005> `relative dependencies inside virtual text document is not resolved correctly` Notes: - maybe `if relative_name:match("deno:")` should become `if is_custom_schema(realtive_name)` where is_custom_schema matches `URI_SCHEME_PATTERN` but is not equal to `file:///` - this changes fixes all my issues with denols (with some minor modifications that I can pr later) This is more to start a discussion I thought showing code is easier to discuss then raising an issue
- Loading branch information