summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lsp/code_action_params_import_assertion.json
blob: 67b822a424400ee03248bd8e99c213dd699c78fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  "textDocument": {
    "uri": "file:///a/a.ts"
  },
  "range": {
    "start": {
      "line": 0,
      "character": 14
    },
    "end": {
      "line": 0,
      "character": 27
    }
  },
  "context": {
    "diagnostics": [
      {
        "range": {
          "start": {
            "line": 0,
            "character": 14
          },
          "end": {
            "line": 0,
            "character": 27
          }
        },
        "severity": 1,
        "code": "no-assert-type",
        "source": "deno",
        "message": "The module is a JSON module and not being imported with an import assertion. Consider adding `assert { type: \"json\" }` to the import statement."
      }
    ],
    "only": [
      "quickfix"
    ]
  }
}