2021-05-29 07:21:11 -04:00
|
|
|
[
|
|
|
|
{
|
2022-03-01 15:44:43 -05:00
|
|
|
"title": "Add import from \"./file00.ts\"",
|
2021-05-29 07:21:11 -04:00
|
|
|
"kind": "quickfix",
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"range": {
|
|
|
|
"start": {
|
|
|
|
"line": 1,
|
|
|
|
"character": 12
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 1,
|
|
|
|
"character": 15
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"severity": 1,
|
|
|
|
"code": 2304,
|
|
|
|
"source": "deno-ts",
|
|
|
|
"message": "Cannot find name 'abc'."
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"edit": {
|
|
|
|
"documentChanges": [
|
|
|
|
{
|
|
|
|
"textDocument": {
|
|
|
|
"uri": "file:///a/file01.ts",
|
|
|
|
"version": 1
|
|
|
|
},
|
|
|
|
"edits": [
|
|
|
|
{
|
|
|
|
"range": {
|
|
|
|
"start": {
|
|
|
|
"line": 0,
|
|
|
|
"character": 0
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 0,
|
|
|
|
"character": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"newText": "import { abc } from \"./file00.ts\";\n"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"title": "Add all missing imports",
|
|
|
|
"kind": "quickfix",
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"range": {
|
|
|
|
"start": {
|
|
|
|
"line": 1,
|
|
|
|
"character": 12
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 1,
|
|
|
|
"character": 15
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"severity": 1,
|
|
|
|
"code": 2304,
|
|
|
|
"source": "deno-ts",
|
|
|
|
"message": "Cannot find name 'abc'."
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"data": {
|
|
|
|
"specifier": "file:///a/file01.ts",
|
|
|
|
"fixId": "fixMissingImport"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2022-03-01 15:44:43 -05:00
|
|
|
"title": "Add import from \"./file00.ts\"",
|
2021-05-29 07:21:11 -04:00
|
|
|
"kind": "quickfix",
|
|
|
|
"diagnostics": [
|
|
|
|
{
|
|
|
|
"range": {
|
|
|
|
"start": {
|
|
|
|
"line": 2,
|
|
|
|
"character": 12
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 2,
|
|
|
|
"character": 15
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"severity": 1,
|
|
|
|
"code": 2304,
|
|
|
|
"source": "deno-ts",
|
|
|
|
"message": "Cannot find name 'def'."
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"edit": {
|
|
|
|
"documentChanges": [
|
|
|
|
{
|
|
|
|
"textDocument": {
|
|
|
|
"uri": "file:///a/file01.ts",
|
|
|
|
"version": 1
|
|
|
|
},
|
|
|
|
"edits": [
|
|
|
|
{
|
|
|
|
"range": {
|
|
|
|
"start": {
|
|
|
|
"line": 0,
|
|
|
|
"character": 0
|
|
|
|
},
|
|
|
|
"end": {
|
|
|
|
"line": 0,
|
|
|
|
"character": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"newText": "import { def } from \"./file00.ts\";\n"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|