From 6b1f30ade93b3bd73625cc354652738254175dba Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 27 Nov 2018 00:12:43 +0300 Subject: hack around nested libraries --- crates/ra_lsp_server/src/path_map.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_lsp_server/src/path_map.rs') diff --git a/crates/ra_lsp_server/src/path_map.rs b/crates/ra_lsp_server/src/path_map.rs index 87eabf9be..a624043d8 100644 --- a/crates/ra_lsp_server/src/path_map.rs +++ b/crates/ra_lsp_server/src/path_map.rs @@ -79,6 +79,10 @@ impl FileResolver for PathMap { let path = normalize(&path); self.get_id(&path) } + + fn debug_path(&self, file_id: FileId) -> Option { + Some(self.get_path(file_id).to_owned()) + } } fn normalize(path: &Path) -> PathBuf { -- cgit v1.2.3