Skip to content

Blackout overwrote my file with empty data #9552

Closed

Description

@benlowry
  • VSCode Version: 1.3
  • OS Version: Windows 10

Steps to Reproduce:

  1. unsaved state on existing file
  2. cut power to desktop

VSCode no longer understands the encoding and there's nothing in the file, although it's not zero bytes either.

Activity

  1. added
    invalid
    on Jul 21, 2016
  2. kieferrm commented on Jul 21, 2016

    @kieferrm
    Member

    Ben (@benlowry) if you don't have autosave enabled vscode does not write a file's content to disk. With autosave enabled it still relies on the operation system file system to perform that operation. Let's assume autosave was enabled and a save operation was in progress when the power outage happened. Whatever vscode is trying to write at this point has still to go through all the layers down to the actual buffer of the disk. Given all that I don't see how vscode could have changed anything in respect to the outcome of the write operation. I do see however how frequent, silent persisting of a dirty buffer state could have made it easier for you to recover. See #101.

  3. added
    *duplicate
    and removed
    invalid
    on Jul 26, 2016
  4. kieferrm commented on Jul 26, 2016

    @kieferrm
    Member

    Marking as duplicate fo #9589.

  5. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions