1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 02:55:39 +03:00

Update dependencies

This commit is contained in:
oxalica 2024-05-01 09:55:17 -04:00
parent aa24d32f04
commit 2f3ed6348b
2 changed files with 230 additions and 219 deletions

440
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -161,11 +161,14 @@ impl Server {
let (server_caps, final_caps) = negotiate_capabilities(&params);
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"),