gpui: Fix invalid unwrap in windows window creation (#42426)
Fixes ZED-34M Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -7651,7 +7651,10 @@ impl LspStore {
|
||||
let buffer = buffer.read(cx);
|
||||
let file = File::from_dyn(buffer.file())?;
|
||||
let abs_path = file.as_local()?.abs_path(cx);
|
||||
let uri = lsp::Uri::from_file_path(abs_path).unwrap();
|
||||
let uri = lsp::Uri::from_file_path(&abs_path)
|
||||
.ok()
|
||||
.with_context(|| format!("Failed to convert path to URI: {}", abs_path.display()))
|
||||
.unwrap();
|
||||
let next_snapshot = buffer.text_snapshot();
|
||||
for language_server in language_servers {
|
||||
let language_server = language_server.clone();
|
||||
|
||||
Reference in New Issue
Block a user