lsp: Send DidOpen notifications when changing selections in multi buffer (#22958)
Fixes #22773 Release Notes: - Fixed an edge case with multibuffers that could break language features within them.
This commit is contained in:
parent
f700268029
commit
b6b06cf6d8
5 changed files with 54 additions and 34 deletions
|
@ -1977,7 +1977,12 @@ impl LocalLspStore {
|
|||
Some(local) => local.abs_path(cx),
|
||||
None => return,
|
||||
};
|
||||
let file_url = lsp::Url::from_file_path(old_path).unwrap();
|
||||
let file_url = lsp::Url::from_file_path(old_path.as_path()).unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"`{}` is not parseable as an URI",
|
||||
old_path.to_string_lossy()
|
||||
)
|
||||
});
|
||||
self.unregister_buffer_from_language_servers(buffer, file_url, cx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue