diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-29 20:44:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 20:44:59 +0100 |
commit | 2d1af0cf51bac446f1c92e8a12db9b5052e37e12 (patch) | |
tree | 540375040f360a25937659c8c95bf0ed99810bec /cli/lsp/config.rs | |
parent | 61b91e10ad41e6d207d60113a2f6f2b63a706940 (diff) |
feat(lsp): jupyter notebook analysis (#20719)
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r-- | cli/lsp/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index d0ef33d40..9af05484c 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -692,10 +692,14 @@ impl WorkspaceSettings { self.code_lens.implementations || self.code_lens.references } + // TODO(nayeemrmn): Factor in out-of-band media type here. pub fn language_settings_for_specifier( &self, specifier: &ModuleSpecifier, ) -> Option<&LanguageWorkspaceSettings> { + if specifier.scheme() == "deno-notebook-cell" { + return Some(&self.typescript); + } match MediaType::from_specifier(specifier) { MediaType::JavaScript | MediaType::Jsx |