context_server: Interpret context server command paths relative to the extension's work dir (#27201)
This PR fixes an issues where the commands returned from context server extensions were being used as-is instead of interpreting them relative to the extension's work dir. Release Notes: - Fixed an issue with context server paths not being interpreted relative to the extension's work dir. --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Thomas Mickley-Doyle <tmickleydoyle@gmail.com>
This commit is contained in:
parent
7feb50fafe
commit
c60a7034c8
2 changed files with 9 additions and 2 deletions
|
@ -51,9 +51,13 @@ impl ExtensionContextServerProxy for ContextServerFactoryRegistryProxy {
|
|||
})
|
||||
})?;
|
||||
|
||||
let command = extension
|
||||
let mut command = extension
|
||||
.context_server_command(id.clone(), extension_project)
|
||||
.await?;
|
||||
command.command = extension
|
||||
.path_from_extension(command.command.as_ref())
|
||||
.to_string_lossy()
|
||||
.to_string();
|
||||
|
||||
log::info!("loaded command for context server {id}: {command:?}");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue