Skip to content

Commit b850b81

Browse files
authored
Use cell source code instead of the concatenated one (#12929)
## Summary fixes: #12880 ## Test Plan Test against the notebook provided in the issue.
1 parent a87b27c commit b850b81

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/ruff_server/src/fix.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ pub(crate) fn fix_all(
123123
fixes.insert(
124124
url.clone(),
125125
vec![lsp_types::TextEdit {
126-
range: source_range.to_range(
127-
source_kind.source_code(),
128-
&source_index,
129-
encoding,
130-
),
126+
range: source_range.to_range(&source, &source_index, encoding),
131127
new_text: modified[modified_range].to_owned(),
132128
}],
133129
);

0 commit comments

Comments
 (0)