summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-09-08 12:47:57 +0100
committerGitHub <noreply@github.com>2023-09-08 12:47:57 +0100
commit14522fc62886b95431f62d5bd21d70cfaac780ee (patch)
tree0b45337ec8e0835cd8f8a15932bc48761b7f8950
parenta9cc4631ca4b5e2bb64943435d0d8242292b168d (diff)
chore(lsp): remove TestingSettings::enable (#20407)
-rw-r--r--cli/lsp/config.rs6
-rw-r--r--cli/lsp/repl.rs5
2 files changed, 1 insertions, 10 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index 6d47d9502..4aafe0238 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -252,17 +252,12 @@ pub struct TestingSettings {
/// a workspace.
#[serde(default)]
pub args: Vec<String>,
- /// Enable or disable the testing API if the client is capable of supporting
- /// the testing API.
- #[serde(default = "is_true")]
- pub enable: bool,
}
impl Default for TestingSettings {
fn default() -> Self {
Self {
args: vec!["--allow-all".to_string(), "--no-check".to_string()],
- enable: true,
}
}
}
@@ -971,7 +966,6 @@ mod tests {
},
testing: TestingSettings {
args: vec!["--allow-all".to_string(), "--no-check".to_string()],
- enable: true
},
tls_certificate: None,
unsafely_ignore_certificate_errors: None,
diff --git a/cli/lsp/repl.rs b/cli/lsp/repl.rs
index 6c820701c..c21e2e3fb 100644
--- a/cli/lsp/repl.rs
+++ b/cli/lsp/repl.rs
@@ -308,9 +308,6 @@ pub fn get_repl_workspace_settings() -> WorkspaceSettings {
hosts: HashMap::from([("https://deno.land".to_string(), true)]),
},
},
- testing: TestingSettings {
- args: vec![],
- enable: false,
- },
+ testing: TestingSettings { args: vec![] },
}
}