diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-08-27 10:12:59 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 10:12:59 +1000 |
commit | 935133f53af2b0efab5d22effff1239dc0e36147 (patch) | |
tree | f1cd283e50618e0cce4f70ff59a1e204856a592b /cli/lsp | |
parent | b9a965c607966efff91118e9a6f604c8f48ba88e (diff) |
feat(cli): Update to TypeScript 4.4 (#11678)
Diffstat (limited to 'cli/lsp')
-rw-r--r-- | cli/lsp/language_server.rs | 2 | ||||
-rw-r--r-- | cli/lsp/tsc.rs | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 9926ac0e4..6f944f404 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -581,6 +581,8 @@ impl Inner { "strict": true, "target": "esnext", "useDefineForClassFields": true, + // TODO(@kitsonk) remove for Deno 1.15 + "useUnknownInCatchVariables": false, })); let (maybe_config, maybe_root_uri) = { let config = &self.config; diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index c5c3c08a9..0e5e3a995 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3304,7 +3304,28 @@ mod tests { ); assert!(result.is_ok()); let response = result.unwrap(); - assert_eq!(response, json!({})); + assert_eq!( + response, + json!({ + "file:///a.ts": [ + { + "start": { + "line": 0, + "character": 35, + }, + "end": { + "line": 0, + "character": 35 + }, + "fileName": "file:///a.ts", + "messageText": "Identifier expected.", + "sourceLine": "const url = new URL(\"b.js\", import.", + "category": 1, + "code": 1003, + } + ] + }) + ); } #[test] |