Skip to content

Commit

Permalink
Use cell source code instead of the concatenated one (#12929)
Browse files Browse the repository at this point in the history
## Summary

fixes: #12880

## Test Plan

Test against the notebook provided in the issue.
  • Loading branch information
dhruvmanila committed Aug 16, 2024
1 parent a87b27c commit b850b81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/ruff_server/src/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}],
);
Expand Down

0 comments on commit b850b81

Please sign in to comment.