mirror of
https://github.com/oxalica/nil.git
synced 2025-12-23 09:19:49 +00:00
Update dependencies
This commit is contained in:
parent
aa24d32f04
commit
2f3ed6348b
2 changed files with 230 additions and 219 deletions
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…
Add table
Add a link
Reference in a new issue