Update to acp 0.0.9 (#34463)

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-07-15 16:28:27 +02:00 committed by GitHub
parent 050ed85d71
commit 7ab8f431a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 19 deletions

View file

@ -875,7 +875,7 @@ impl AcpThread {
&self,
) -> impl use<> + Future<Output = Result<acp::InitializeResponse, acp::Error>> {
let connection = self.connection.clone();
async move { connection.request(acp::InitializeParams).await }
async move { connection.initialize().await }
}
pub fn authenticate(&self) -> impl use<> + Future<Output = Result<(), acp::Error>> {
@ -1839,8 +1839,12 @@ mod tests {
}
impl acp::Agent for FakeAgent {
async fn initialize(&self) -> Result<acp::InitializeResponse, acp::Error> {
async fn initialize(
&self,
params: acp::InitializeParams,
) -> Result<acp::InitializeResponse, acp::Error> {
Ok(acp::InitializeResponse {
protocol_version: params.protocol_version,
is_authenticated: true,
})
}