@@ -2069,9 +2069,11 @@ fn goto_impl(
20692069 offset_encoding: OffsetEncoding,
20702070 action: Action,
20712071 ) {
2072− let id = editor
2073− .open(PathBuf::from(location.uri.path()), action)
2074− .expect("editor.open failed");
2072+ let path = location
2073+ .uri
2074+ .to_file_path()
2075+ .expect("unable to convert URI to filepath");
2076+ let id = editor.open(path, action).expect("editor.open failed");
20752077 let (view, doc) = current!(editor);
20762078 let definition_pos = location.range.start;
20772079 // TODO: convert inside server