mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
Latest LSP 3.16 protocol
Pulls in https://github.com/gluon-lang/lsp-types/pull/186
This commit is contained in:
parent
0a658c4a97
commit
233fdb12ce
12 changed files with 32 additions and 33 deletions
|
@ -263,9 +263,9 @@ impl GlobalStateSnapshot {
|
|||
self.vfs.read().1[&id]
|
||||
}
|
||||
|
||||
pub(crate) fn url_file_version(&self, url: &Url) -> Option<i64> {
|
||||
pub(crate) fn url_file_version(&self, url: &Url) -> Option<i32> {
|
||||
let path = from_proto::vfs_path(&url).ok()?;
|
||||
self.mem_docs.get(&path)?.version
|
||||
Some(self.mem_docs.get(&path)?.version)
|
||||
}
|
||||
|
||||
pub(crate) fn anchored_path(&self, file_id: FileId, path: &str) -> Url {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue