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:
Dhruv Manilawala 2024-08-16 19:50:12 +05:30 committed by GitHub
parent a87b27c075
commit b850b812de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),
}],
);