summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lsp/code_action_response_import_assertion.json
blob: bff934b215d0a76b94ce4ee52479529c3070f28e (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
39
40
41
42
43
[
  {
    "title": "Insert import assertion.",
    "kind": "quickfix",
    "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."
      }
    ],
    "edit": {
      "changes": {
        "file:///a/a.ts": [
          {
            "range": {
              "start": {
                "line": 0,
                "character": 27
              },
              "end": {
                "line": 0,
                "character": 27
              }
            },
            "newText": " assert { type: \"json\" }"
          }
        ]
      }
    }
  }
]