diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-06-26 23:47:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 23:47:01 +0100 |
commit | 67dcd6db518446574d3a1e33f4ce536fcdc4fd25 (patch) | |
tree | 23d6aa1d867b1efded9c0e638c89513ca492a44f /cli/lsp/config.rs | |
parent | 2a2ff96be13047cb50612fde0f12e5f6df374ad3 (diff) |
feat(lsp): ts language service scopes (#24345)
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r-- | cli/lsp/config.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index 4f96d45a4..8238ae510 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -1055,7 +1055,6 @@ impl Default for LspTsConfig { "esModuleInterop": true, "experimentalDecorators": false, "isolatedModules": true, - "jsx": "react", "lib": ["deno.ns", "deno.window", "deno.unstable"], "module": "esnext", "moduleDetection": "force", @@ -1569,16 +1568,10 @@ impl ConfigData { #[derive(Clone, Debug, Default)] pub struct ConfigTree { - first_folder: Option<ModuleSpecifier>, scopes: Arc<BTreeMap<ModuleSpecifier, Arc<ConfigData>>>, } impl ConfigTree { - pub fn root_ts_config(&self) -> Arc<LspTsConfig> { - let root_data = self.first_folder.as_ref().and_then(|s| self.scopes.get(s)); - root_data.map(|d| d.ts_config.clone()).unwrap_or_default() - } - pub fn scope_for_specifier( &self, specifier: &ModuleSpecifier, @@ -1773,7 +1766,6 @@ impl ConfigTree { ); } } - self.first_folder.clone_from(&settings.first_folder); self.scopes = Arc::new(scopes); } @@ -1790,7 +1782,6 @@ impl ConfigTree { ) .await, ); - self.first_folder = Some(scope.clone()); self.scopes = Arc::new([(scope, data)].into_iter().collect()); } } |