Skip to content

Commit a3514d3

Browse files
committed
Fix tests
1 parent 12e2b09 commit a3514d3

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

rust/example_client.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,31 @@ impl acp::Client for ExampleClient {
4040
Err(acp::Error::method_not_found())
4141
}
4242

43+
#[cfg(feature = "unstable")]
4344
async fn create_terminal(
4445
&self,
4546
_args: acp::CreateTerminalRequest,
4647
) -> Result<acp::CreateTerminalResponse, acp::Error> {
4748
Err(acp::Error::method_not_found())
4849
}
4950

51+
#[cfg(feature = "unstable")]
5052
async fn terminal_output(
5153
&self,
5254
_args: acp::TerminalOutputRequest,
5355
) -> anyhow::Result<acp::TerminalOutputResponse, acp::Error> {
5456
Err(acp::Error::method_not_found())
5557
}
5658

59+
#[cfg(feature = "unstable")]
5760
async fn release_terminal(
5861
&self,
5962
_args: acp::ReleaseTerminalRequest,
6063
) -> anyhow::Result<(), acp::Error> {
6164
Err(acp::Error::method_not_found())
6265
}
6366

67+
#[cfg(feature = "unstable")]
6468
async fn wait_for_terminal_exit(
6569
&self,
6670
_args: acp::WaitForTerminalExitRequest,

rust/rpc_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,28 @@ impl Client for TestClient {
6868
Ok(())
6969
}
7070

71+
#[cfg(feature = "unstable")]
7172
async fn create_terminal(
7273
&self,
7374
_args: CreateTerminalRequest,
7475
) -> Result<CreateTerminalResponse, Error> {
7576
unimplemented!()
7677
}
7778

79+
#[cfg(feature = "unstable")]
7880
async fn terminal_output(
7981
&self,
8082
_args: TerminalOutputRequest,
8183
) -> Result<TerminalOutputResponse, Error> {
8284
unimplemented!()
8385
}
8486

87+
#[cfg(feature = "unstable")]
8588
async fn release_terminal(&self, _args: ReleaseTerminalRequest) -> Result<(), Error> {
8689
unimplemented!()
8790
}
8891

92+
#[cfg(feature = "unstable")]
8993
async fn wait_for_terminal_exit(
9094
&self,
9195
_args: WaitForTerminalExitRequest,

0 commit comments

Comments
 (0)