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 authored and GitHub committed 2025-11-27 18:29:42 -03:00
1 parent 61e9025370
commit c55f042a33
1 file changed
+2
+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)]