Allow diagnostics to generate multi-edit fixes (#3709)
This commit is contained in:
@@ -93,16 +93,20 @@ fn test_stdin_json() -> Result<()> {
|
||||
"code": "F401",
|
||||
"message": "`os` imported but unused",
|
||||
"fix": {{
|
||||
"content": "",
|
||||
"message": "Remove unused import: `os`",
|
||||
"location": {{
|
||||
"row": 1,
|
||||
"column": 0
|
||||
}},
|
||||
"end_location": {{
|
||||
"row": 2,
|
||||
"column": 0
|
||||
}}
|
||||
"edits": [
|
||||
{{
|
||||
"content": "",
|
||||
"location": {{
|
||||
"row": 1,
|
||||
"column": 0
|
||||
}},
|
||||
"end_location": {{
|
||||
"row": 2,
|
||||
"column": 0
|
||||
}}
|
||||
}}
|
||||
]
|
||||
}},
|
||||
"location": {{
|
||||
"row": 1,
|
||||
|
||||
Reference in New Issue
Block a user