project: Update variable and change comment (#17933)

Previous this *was* the `cli_environment`, but now it's the project
environment.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-09-17 14:33:53 +02:00 committed by GitHub
parent c34fc5c6e5
commit 2165d52d3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 9 deletions

View file

@ -4646,7 +4646,7 @@ impl LspStore {
let stderr_capture = Arc::new(Mutex::new(Some(String::new())));
let lsp_adapter_delegate = ProjectLspAdapterDelegate::for_local(self, worktree_handle, cx);
let cli_environment = local.environment.update(cx, |environment, cx| {
let project_environment = local.environment.update(cx, |environment, cx| {
environment.get_environment(Some(worktree_id), Some(worktree_path.clone()), cx)
});
@ -4656,7 +4656,7 @@ impl LspStore {
adapter.clone(),
Arc::clone(&worktree_path),
lsp_adapter_delegate.clone(),
cli_environment,
project_environment,
cx,
) {
Some(pending_server) => pending_server,