diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-03-10 13:41:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 13:41:35 +1100 |
commit | a020ebde2d9c69a1e2616c96f907866d417f2e0f (patch) | |
tree | c323920e7a3d071b59a248898f92100182eec31e /cli/lsp/config.rs | |
parent | 8d3baa7777b6bd2a2631e1b87a4676b520f2b447 (diff) |
fix(lsp): diagnostics use own thread and debounce (#9572)
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r-- | cli/lsp/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index cb814d0fd..8d31e3d54 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -15,7 +15,7 @@ pub struct ClientCapabilities { pub workspace_did_change_watched_files: bool, } -#[derive(Debug, Default, Deserialize)] +#[derive(Debug, Default, Clone, Deserialize)] #[serde(rename_all = "camelCase")] pub struct CodeLensSettings { /// Flag for providing implementation code lenses. @@ -30,7 +30,7 @@ pub struct CodeLensSettings { pub references_all_functions: bool, } -#[derive(Debug, Default, Deserialize)] +#[derive(Debug, Default, Clone, Deserialize)] #[serde(rename_all = "camelCase")] pub struct WorkspaceSettings { pub enable: bool, @@ -81,7 +81,7 @@ impl WorkspaceSettings { } } -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct Config { pub client_capabilities: ClientCapabilities, pub root_uri: Option<Url>, |