summaryrefslogtreecommitdiff
path: root/cli/lsp/testing/definitions.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-04-20 02:00:03 +0100
committerGitHub <noreply@github.com>2024-04-20 02:00:03 +0100
commit79e6751cf753612f99438ee2f158f54a1bf44815 (patch)
treefb7fea727208653bb3fb8d921bbb5a2ab8fc3a52 /cli/lsp/testing/definitions.rs
parent472a37064071c66cd1311cdea2e78de8d2bc0641 (diff)
perf(lsp): only store parsed sources for open documents (#23454)
Diffstat (limited to 'cli/lsp/testing/definitions.rs')
-rw-r--r--cli/lsp/testing/definitions.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/lsp/testing/definitions.rs b/cli/lsp/testing/definitions.rs
index ab47beec9..43a07c2e3 100644
--- a/cli/lsp/testing/definitions.rs
+++ b/cli/lsp/testing/definitions.rs
@@ -28,16 +28,13 @@ pub struct TestDefinition {
#[derive(Debug, Clone, PartialEq)]
pub struct TestModule {
pub specifier: ModuleSpecifier,
- /// The version of the document that the discovered tests relate to.
- pub script_version: String,
pub defs: HashMap<String, TestDefinition>,
}
impl TestModule {
- pub fn new(specifier: ModuleSpecifier, script_version: String) -> Self {
+ pub fn new(specifier: ModuleSpecifier) -> Self {
Self {
specifier,
- script_version,
defs: Default::default(),
}
}