We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87b27c commit b850b81Copy full SHA for b850b81
1 file changed
crates/ruff_server/src/fix.rs
@@ -123,11 +123,7 @@ pub(crate) fn fix_all(
123
fixes.insert(
124
url.clone(),
125
vec![lsp_types::TextEdit {
126
- range: source_range.to_range(
127
- source_kind.source_code(),
128
- &source_index,
129
- encoding,
130
- ),
+ range: source_range.to_range(&source, &source_index, encoding),
131
new_text: modified[modified_range].to_owned(),
132
}],
133
);
0 commit comments