Return correct file contents for quick diff

finchie
Dec 15, 2025, 5:02 AM
TWPZLEGDVH4YBYEPFIRD7ONZGJPAMLXLPZTIHHKTUFLU5XIS3X7AC

Dependencies

  • [2] WFWTKCJN Create initial Visual Studio Code extension
  • [3] DUZBRB3U Render correspoding hunk on inline credit hover
  • [4] 6AUGQLIK Add basic panic handling
  • [5] 72K45XKD Refactor inline credit to improve hover messages

Change contents

  • replacement in pijul-extension/src/file_system/open_file/mod.rs at line 40
    [2.23868][2.23868:23954]()
    pub fn tracked_contents(&self) -> String {
    self.contents.text.to_string()
    [2.23868]
    [2.23954]
    pub fn tracked_contents(&self) -> Option<&str> {
    let credits = self.credits.as_ref()?;
    Some(&credits.recorded_state.original_contents)
  • edit in extensions/vscode/src/lib.rs at line 5
    [2.108639][2.108639:108675]()
    // TODO: quick diff untracked files
  • replacement in extensions/vscode/src/lib.rs at line 122
    [2.112927][2.112927:112998]()
    Some(open_file) => Ok(Some(open_file.tracked_contents())),
    [2.112927]
    [2.112998]
    Some(open_file) => Ok(open_file.tracked_contents().map(str::to_string)),