mirror of https://github.com/astral-sh/ruff
regen snapshot
This commit is contained in:
parent
72ef51b7bc
commit
a16dc52990
|
|
@ -48,6 +48,51 @@ expression: code_actions
|
||||||
},
|
},
|
||||||
"isPreferred": true
|
"isPreferred": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "qualify warnings.deprecated",
|
||||||
|
"kind": "quickfix",
|
||||||
|
"diagnostics": [
|
||||||
|
{
|
||||||
|
"range": {
|
||||||
|
"start": {
|
||||||
|
"line": 3,
|
||||||
|
"character": 1
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 3,
|
||||||
|
"character": 11
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"severity": 1,
|
||||||
|
"code": "unresolved-reference",
|
||||||
|
"codeDescription": {
|
||||||
|
"href": "https://ty.dev/rules#unresolved-reference"
|
||||||
|
},
|
||||||
|
"source": "ty",
|
||||||
|
"message": "Name `deprecated` used when not defined"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit": {
|
||||||
|
"changes": {
|
||||||
|
"file://<temp_dir>/src/foo.py": [
|
||||||
|
{
|
||||||
|
"range": {
|
||||||
|
"start": {
|
||||||
|
"line": 3,
|
||||||
|
"character": 1
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 3,
|
||||||
|
"character": 11
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"newText": "warnings.deprecated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isPreferred": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "Ignore 'unresolved-reference' for this line",
|
"title": "Ignore 'unresolved-reference' for this line",
|
||||||
"kind": "quickfix",
|
"kind": "quickfix",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue