Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled-1 File Created After Discarding Unsaved Files with GitHub Pull Requests Extension Enabled #6604

Open
singularitti opened this issue Jan 25, 2025 · 0 comments

Comments

@singularitti
Copy link

singularitti commented Jan 25, 2025

Summary

When the GitHub Pull Requests extension is enabled, closing an unsaved file in VSCode (after choosing "Don't Save") causes a new untitled file (Untitled-1) to be created automatically. This behavior does not occur when the extension is disabled.

Steps to Reproduce

  1. Install and enable the GitHub Pull Requests extension.
  2. Open a new file in VSCode (Ctrl+N or Cmd+N).
  3. Type any text in the new file.
  4. Close the file without saving by selecting "Don't Save."
  5. Observe that a new untitled file (Untitled-1) is automatically created.

Expected Behavior

When an unsaved file is closed and discarded, it should not result in the creation of a new untitled file.

Actual Behavior

Closing an unsaved file results in a new untitled file (Untitled-1) being automatically created, even though no such behavior occurs when the extension is disabled.

Troubleshooting Steps Taken

  1. Disabled the GitHub Pull Requests extension.
    • The issue no longer occurs when the extension is disabled.
  2. Verified user and workspace settings:
    {
      "files.hotExit": "off",
      "workbench.editor.restoreViewState": false,
      "workbench.editor.enablePreview": false,
      "files.autoSave": "off"
    }

VSCode and Extension Details

  • VSCode Version:

    Version: 1.96.4
    Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
    Date: 2025-01-16T00:16:19.038Z
    Electron: 32.2.6
    ElectronBuildId: 10629634
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0
    OS: Darwin arm64 24.2.0
    
  • GitHub Pull Requests Extension Version: 0.102.0

  • OS: macOS 15.2 (24C101)

@singularitti singularitti changed the title "Untitled-1" File Created After Discarding Unsaved Files with GitHub Pull Requests Extension Enabled Untitled-1 File Created After Discarding Unsaved Files with GitHub Pull Requests Extension Enabled Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant