Relay buffer change events to Copilot

This commit is contained in:
Antonio Scandurra 2023-04-19 12:19:24 +02:00
parent ce8442a3d8
commit 672cf6b8c7
5 changed files with 268 additions and 99 deletions

View file

@ -99,14 +99,11 @@ pub struct GetCompletionsParams {
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GetCompletionsDocument {
pub source: String,
pub tab_size: u32,
pub indent_size: u32,
pub insert_spaces: bool,
pub uri: lsp::Url,
pub path: String,
pub relative_path: String,
pub language_id: String,
pub position: lsp::Position,
pub version: usize,
}