diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-24 17:59:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-24 17:59:42 +0100 |
commit | 33f84321b29f97c5757f019a72228c1c9631852e (patch) | |
tree | 97b5d9cb5987010c674fb6743429b2ef14fad633 /cli/lsp/config.rs | |
parent | cb9ab9c3ac53ed642c6c648f4931056551a378b7 (diff) |
refactor(lsp): implement "deno.cacheOnSave" server-side (#20632)
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r-- | cli/lsp/config.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index 1a83c00eb..52ee362b8 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -315,6 +315,11 @@ pub struct WorkspaceSettings { #[serde(default, deserialize_with = "empty_string_none")] pub cache: Option<String>, + /// Cache local modules and their dependencies on `textDocument/didSave` + /// notifications corresponding to them. + #[serde(default)] + pub cache_on_save: bool, + /// Override the default stores used to validate certificates. This overrides /// the environment variable `DENO_TLS_CA_STORE` if present. pub certificate_stores: Option<Vec<String>>, @@ -379,6 +384,7 @@ impl Default for WorkspaceSettings { disable_paths: vec![], enable_paths: None, cache: None, + cache_on_save: false, certificate_stores: None, config: None, import_map: None, @@ -1192,6 +1198,7 @@ mod tests { disable_paths: vec![], enable_paths: None, cache: None, + cache_on_save: false, certificate_stores: None, config: None, import_map: None, |