Lost website project files created in VS Code with GitHub Copilot

Moore, Landon W 0 Reputation points
2026-10-12T00:25:47.1633333+00:00

I spent approximately 120 hours building a website project in Visual Studio Code while using GitHub Copilot. The project contained HTML, CSS, JavaScript, SVG, and asset files.

After reopening Visual Studio Code, I can no longer locate the project folder or files. VS Code currently shows no folder open, and I am unable to determine whether the files were stored in a temporary workspace, Copilot-generated workspace, or another location.

I would like help determining:

  • Whether VS Code or GitHub Copilot may have stored the project in a temporary location
  • Whether any workspace history, recovery options, local backups, or caches exist
  • How to locate project files that were previously visible in VS Code
  • Whether project files can be recovered if a workspace was accidentally removed

I am using Windows 11, Visual Studio Code, and GitHub Copilot.

Any guidance on locating or recovering the project would be appreciated.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Xuan Nhu 1,370 Reputation points Independent Advisor
    2026-10-12T00:58:36.7033333+00:00

    Dear Landon,

    Thank you for posting to the forum community. Losing access to a project after 120 hours of work is worrying, but “no folder open” does not mean the files were deleted. The first step is to find the original folder, then check recovery options if it is missing.

    Please try these checks in order:

    1. Check File → Open Recent in VS Code, or press Ctrl + R. Look for your project folder or workspace. If you find a .code-workspace file, its folders section can show where the project files were located. A workspace file stores folder references and settings; it does not contain the website itself. Recent workspaces · Workspace documentation. code.visualstudio.com

    Search in Windows File Explorer for a distinctive filename you remember. Start with your user folder, including Documents, Desktop, Downloads, and OneDrive. Also check the Recycle Bin.

    1. Check VS Code Local History. Press Ctrl + Shift + P and search for Local History: Find Entry to Restore. Recovery depends on whether entries were recorded and retained. Local History has file-size and retention limits, so it may not contain every asset. Local History documentation. code.visualstudio.com
    2. Check unsaved-file backups. For a standard Windows installation, Microsoft documents this location:
         %APPDATA%\Code\Backups
      
      Paste it into File Explorer’s address bar. Copy the folder somewhere safe before examining its contents. These are backups associated with unsaved editors, rather than a guaranteed backup of the entire project. Hot Exit documentation. code.visualstudio.com

    If you previously pushed the project to GitHub, check that repository too. Using GitHub Copilot alone does not establish that the files were uploaded or backed up.

    Could you confirm whether you used desktop VS Code locally, WSL, a Dev Container, or GitHub Codespaces, and whether the project appears under Open Recent? That will help narrow down where to look. For now, avoid clearing VS Code’s application data or running cleanup tools that might remove recovery files.

    If this helped, I’d appreciate a Like so others can find the answer more easily.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-10-12T00:27:50.38+00:00

    Stop writing new data to the PC, then search the disk and VS Code’s recent-workspace records before attempting recovery, because continued use can overwrite deleted file data.^1^

    GitHub Copilot generates or edits files in the workspace available to VS Code; it should not be treated as a separate backup of the resulting project. Likewise, “no folder open” means VS Code has not reopened the folder—it does not by itself prove the folder was deleted.

    1. Locate the original folder

    1. In VS Code, select File → Open Recent and try every relevant folder or workspace entry. VS Code normally preserves the folder and open-file state of previous sessions.^2^
    2. Open File Explorer → This PC. Search for:
      • A remembered filename, project name, unique asset name, or text fragment.
      • *.html, then *.css, *.js, *.svg, and *.json.
      • Assets separately: *.png, *.jpg, *.jpeg, *.webp, *.gif, *.ico, *.woff, *.woff2, *.ttf, *.mp4.
    3. For each result, right-click it and select Open file location. Microsoft recommends searching from This PC when the original location is unknown.^3^
    4. Check these locations manually:
      • C:\Users\<username>\Desktop
      • C:\Users\<username>\Documents
      • C:\Users\<username>\Downloads
      • C:\Users\<username>\source
      • C:\Users\<username>\OneDrive
      • Other folders under C:\Users, in case another Windows profile was used
      • Recycle Bin

    This PowerShell search is limited to the current Windows user profile, but is often faster for source files:

    $types = '*.html','*.css','*.js','*.svg','*.json',
             '*.png','*.jpg','*.jpeg','*.webp','*.gif',
             '*.ico','*.woff','*.woff2','*.ttf','*.mp4'
    Get-ChildItem $env:USERPROFILE -Recurse -Force -File `
      -Include $types -ErrorAction SilentlyContinue |
      Sort-Object LastWriteTime -Descending |
      Select-Object LastWriteTime, FullName
    

    2. Check Git and VS Code recovery data

    Search for Git repositories, including hidden .git directories:

    Get-ChildItem $env:USERPROFILE -Directory -Recurse -Force `
      -Filter '.git' -ErrorAction SilentlyContinue |
      ForEach-Object {
        [pscustomobject]@{
          Repository = $_.Parent.FullName
          Modified   = $_.LastWriteTime
        }
      }
    

    For each repository, inspect its log:

    Set-Location 'C:\path\to\repository'
    git status
    git log --all --oneline --decorate
    

    Git can restore committed files and retained Git objects; it does not guarantee recovery of uncommitted working files. VS Code also exposes Git commits and local-save events through a surviving file’s Explorer → Timeline view.^4^

    For a standard VS Code installation, make a read-only copy of %APPDATA%\Code\User and inspect these commonly present subdirectories:

    • History — possible local-history entries for saved files.
    • Backups — possible unsaved-editor recovery data.
    • workspaceStorage — workspace metadata that may reveal an original folder path.

    Sort their contents by Date modified and inspect metadata or text files for the project name or old path. These locations are implementation-dependent and are not guaranteed full-project backups; Insiders and portable installations use different user-data locations. Official VS Code documentation does not establish workspaceStorage or Open Recent as dependable deleted-project backups.^4^

    Removing a folder from a VS Code workspace normally removes the workspace reference; recovery software is needed only if the underlying folder was separately deleted, moved, or lost.

    3. Restore an existing backup

    If the project was under OneDrive, inspect both the local OneDrive folders and the OneDrive web Recycle Bin/version history. Windows Backup can redirect Desktop, Documents, Pictures, Videos, and Music into OneDrive.^5^

    If File History had already been enabled:

    1. Navigate to the folder that previously contained the project.
    2. Right-click it → Restore previous versions.
    3. Open a dated version to verify it.
    4. Prefer Restore to... and select another folder, avoiding replacement of current data.^6^

    4. Recover deleted files

    If searches and backups fail, install Windows File Recovery from Microsoft Store and connect an external drive, such as E:. The source and destination must differ. First run winfr /? because supported switches vary by installed version.^1^

    For recently deleted files on an NTFS drive:

    winfr C: E: /regular /n *.html /n *.css /n *.js /n *.svg /n *.json /n *.png /n *.jpg /n *.webp
    

    If that fails:

    winfr C: E: /extensive /n *.html /n *.css /n *.js /n *.svg /n *.json /n *.png /n *.jpg /n *.webp
    

    Some Windows File Recovery versions filter development types such as CSS, JavaScript, and JSON. Check winfr /!; use /e only with a mode for which that installed version explicitly lists /e as supported—do not add it to /regular or /extensive if rejected. Recovered results can be incomplete, especially when deleted space has already been overwritten.


    References

    1. Windows File Recovery | Microsoft Support
    2. User interface - Visual Studio Code
    3. Find lost files after upgrading Windows | Microsoft Support
    4. View source control history - Visual Studio Code
    5. Backup, restore, and recovery in Windows | Microsoft Support
    6. Backup and restore with File History | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.