Skip to content

Commit 743c2b6

Browse files
committed
Fix: move version in structs before source, to make debug easier.
1 parent a62877b commit 743c2b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/CodeChatEditor.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ const save_lp = (is_dirty: boolean) => {
338338
}
339339
update.contents = {
340340
metadata: current_metadata,
341-
source: code_mirror_diffable,
342341
version: rand(),
342+
source: code_mirror_diffable,
343343
};
344344
}
345345

server/src/processing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ use crate::lexer::{
9797
#[ts(export)]
9898
pub struct CodeChatForWeb {
9999
pub metadata: SourceFileMetadata,
100-
pub source: CodeMirrorDiffable,
101100
/// The version number after accepting this update.
102101
pub version: f64,
102+
pub source: CodeMirrorDiffable,
103103
}
104104

105105
/// Provide two options for sending CodeMirror data -- as the full contents

0 commit comments

Comments
 (0)