sweep: Set use_bytes flag (#43687)

Without this new flag, the Sweep API will actually produce a combination
of UTF-16 and char indices, leading to incorrect edit positions.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-11-27 18:29:42 -03:00
committed by GitHub
parent 05b999bb7c
commit 77656a4091
+2
View File
@@ -164,6 +164,7 @@ impl SweepAi {
file_chunks,
retrieval_chunks: vec![],
recent_user_actions: vec![],
use_bytes: true,
// TODO
privacy_mode_enabled: false,
};
@@ -275,6 +276,7 @@ struct AutocompleteRequest {
pub multiple_suggestions: bool,
pub privacy_mode_enabled: bool,
pub changes_above_cursor: bool,
pub use_bytes: bool,
}
#[derive(Debug, Clone, Serialize)]