Allow diagnostics to generate multi-edit fixes (#3709)

This commit is contained in:
Charlie Marsh
2023-03-26 16:45:19 -04:00
committed by GitHub
parent 32be63fd1e
commit e603382cf0
731 changed files with 17319 additions and 13447 deletions

View File

@@ -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,