mirror of https://github.com/lapce/lapce.git
Merge pull request #849 from MinusGix/specify-workspace-folder
Specify the workspace folder of the root uri if available
This commit is contained in:
commit
2f7a6e2e96
|
@ -1311,11 +1311,16 @@ pub fn send_initialize<CB>(&self, root_uri: Option<Url>, on_init: CB)
|
|||
#[allow(deprecated)]
|
||||
let init_params = InitializeParams {
|
||||
process_id: Some(process::id()),
|
||||
root_uri,
|
||||
root_uri: root_uri.clone(),
|
||||
initialization_options: self.options.clone(),
|
||||
capabilities: client_capabilities,
|
||||
trace: Some(TraceValue::Verbose),
|
||||
workspace_folders: None,
|
||||
workspace_folders: root_uri.map(|uri| {
|
||||
vec![WorkspaceFolder {
|
||||
name: uri.as_str().to_string(),
|
||||
uri,
|
||||
}]
|
||||
}),
|
||||
client_info: None,
|
||||
root_path: None,
|
||||
locale: None,
|
||||
|
|
Loading…
Reference in New Issue