Return correct file contents for quick diff
Dependencies
- [2]
WFWTKCJNCreate initial Visual Studio Code extension - [3]
DUZBRB3URender correspoding hunk on inline credit hover - [4]
6AUGQLIKAdd basic panic handling - [5]
72K45XKDRefactor inline credit to improve hover messages
Change contents
- replacement in pijul-extension/src/file_system/open_file/mod.rs at line 40
pub fn tracked_contents(&self) -> String {self.contents.text.to_string()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
// TODO: quick diff untracked files - replacement in extensions/vscode/src/lib.rs at line 122
Some(open_file) => Ok(Some(open_file.tracked_contents())),Some(open_file) => Ok(open_file.tracked_contents().map(str::to_string)),