Improve performance of related_documents

This commit is contained in:
Patrick Förster 2019-05-18 11:43:13 +02:00
parent 09134251f5
commit 9ecd325737

View file

@ -74,7 +74,6 @@ impl Workspace {
let mut path = uri.to_file_path().ok()?;
path.pop();
path.push(include.path().text());
path = PathBuf::from(path.to_string_lossy().replace("\\", "/"));
path = path.clean();
let path1 = path.to_string_lossy().into_owned();