mirror of
https://github.com/oxalica/nil.git
synced 2024-11-22 02:55:39 +03:00
Update dependencies
This commit is contained in:
parent
aa24d32f04
commit
2f3ed6348b
440
Cargo.lock
generated
440
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -161,11 +161,14 @@ impl Server {
|
||||
let (server_caps, final_caps) = negotiate_capabilities(¶ms);
|
||||
self.capabilities = final_caps;
|
||||
|
||||
// TODO: Use `workspaceFolders`.
|
||||
// TODO: Multi-workspace support.
|
||||
let root_path = match params
|
||||
.root_uri
|
||||
.workspace_folders
|
||||
.as_ref()
|
||||
.and_then(|uri| uri.to_file_path().ok())
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.next()
|
||||
.and_then(|ws| ws.uri.to_file_path().ok())
|
||||
{
|
||||
Some(path) => path,
|
||||
None => std::env::current_dir().expect("Failed to the current directory"),
|
||||
|
Loading…
Reference in New Issue
Block a user