Start copilot and check sign in status
This commit is contained in:
parent
5471217089
commit
797bb7d780
2 changed files with 100 additions and 27 deletions
22
crates/copilot/src/request.rs
Normal file
22
crates/copilot/src/request.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub enum CheckStatus {}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CheckStatusParams {
|
||||
pub local_checks_only: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CheckStatusResult {
|
||||
pub status: String,
|
||||
pub user: Option<String>,
|
||||
}
|
||||
|
||||
impl lsp::request::Request for CheckStatus {
|
||||
type Params = CheckStatusParams;
|
||||
type Result = CheckStatusResult;
|
||||
const METHOD: &'static str = "checkStatus";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue