summaryrefslogtreecommitdiff
path: root/cli/lsp/documents.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-12-10 09:12:21 +1100
committerGitHub <noreply@github.com>2021-12-10 09:12:21 +1100
commit345f0fbe5cdaa71af067c7072537f1823fe4ada5 (patch)
treec37062607fe23ef9d1826c1d43a10a712b827f3c /cli/lsp/documents.rs
parenta3d024ac2ec8d73f7bf268823866d2342d1c1eb1 (diff)
feat(cli): update to TypeScript 4.5 (#12410)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r--cli/lsp/documents.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index d5acac8d7..cbc839c46 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -455,12 +455,17 @@ impl Document {
pub fn is_diagnosable(&self) -> bool {
matches!(
self.media_type(),
- // todo(#12410): Update with new media types for TS 4.5
MediaType::JavaScript
| MediaType::Jsx
+ | MediaType::Mjs
+ | MediaType::Cjs
| MediaType::TypeScript
| MediaType::Tsx
+ | MediaType::Mts
+ | MediaType::Cts
| MediaType::Dts
+ | MediaType::Dmts
+ | MediaType::Dcts
)
}