mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
Use cell source code instead of the concatenated one (#12929)
## Summary fixes: #12880 ## Test Plan Test against the notebook provided in the issue.
This commit is contained in:
parent
a87b27c075
commit
b850b812de
1 changed files with 1 additions and 5 deletions
|
@ -123,11 +123,7 @@ pub(crate) fn fix_all(
|
|||
fixes.insert(
|
||||
url.clone(),
|
||||
vec![lsp_types::TextEdit {
|
||||
range: source_range.to_range(
|
||||
source_kind.source_code(),
|
||||
&source_index,
|
||||
encoding,
|
||||
),
|
||||
range: source_range.to_range(&source, &source_index, encoding),
|
||||
new_text: modified[modified_range].to_owned(),
|
||||
}],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue