Start copilot and check sign in status

This commit is contained in:
Antonio Scandurra 2023-03-23 10:29:56 +01:00 committed by Mikayla Maki
parent 5471217089
commit 797bb7d780
2 changed files with 100 additions and 27 deletions

View 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";
}