Skip to content

Close open editors when underlying file no longer exists #236268

Closed as not planned
@Greglar4

Description

Currently, if you delete a file within vs code, any editors that are open on that file close. However, if you have an editor open on a file, close vs code, delete the file on your file system, and then reopen vs code, the editor is still open, and displays an error message: "The editor could not be opened because the file was not found". It would be nice if vs code simply closed the editors for which files no longer exist when vs code is opened.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codefile-ioFile I/Ounder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions