summaryrefslogtreecommitdiff
path: root/cli/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp')
-rw-r--r--cli/lsp/language_server.rs2
-rw-r--r--cli/lsp/tsc.rs23
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]