koog1000 / vscode-fossil

Integrated Fossil source control for Visual Studio Code
Other
71 stars 8 forks source link

viewing diff of deleted file #157

Closed pekeler closed 1 year ago

pekeler commented 1 year ago

Desire

1

Help

Steps to reproduce

  1. fossil rm file
  2. rm file
  3. click Refresh button in VSCode's source control section
  4. select the red, deleted file
  5. see "The editor could not be opened due to an unexpected error: Unexpected token 'e', "empty" is not valid JSON"

Description

Viewing a deleted file in the diff view causes problems.

OS

No response

Fossil version

No response

Vscode/Vscodium version

0.5.2

senyai commented 1 year ago

Fixed in 0.5.3. New behavior matches git extension. I don't quite like it (because it just shows file content), but I couldn't figure out how to make better.