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

Open in current window if empty #188

Closed
albireox opened this issue May 24, 2018 · 3 comments
Closed

Open in current window if empty #188

albireox opened this issue May 24, 2018 · 3 comments
Assignees
Labels
depends on Depends on issues from VS Code enhancement good first issue Good for newcomers
Milestone

Comments

@albireox
Copy link

One thing I like about how the Atom project manager works is that it will normally open new projects into a new window. But if the current window is empty (that is, there is no directory or file open, only and untouched Untitled file), it would replace the window with the project. Would it be possible to have this as an option?

@alefragnani
Copy link
Owner

Hi @albireox ,

I think that it's a good idea. Thanks for your suggestion 👍

@TheSeally
Copy link

@alefragnani is it still relevant issue? Can I try to do this?

@alefragnani
Copy link
Owner

It appears it depends on microsoft/vscode#15178, to know if there is any file/folder/workspace opened.

From Slack https://vscode-dev-community.slack.com/archives/C74CB59NE/p1574037925370200:

checking vscode.workspace.workspaceFolders returns undefined if I don't have a Folder or a Workspace (multi-root folder) opened, which is fine. But if I have random files opened (no folder related) it will return undefined as well 😢. I tried to use vscode.workspace.textDocuments (which is described as All text documents currently known to the system.), but even with no opened file, it can return 1, because of the Welcome Page..

@alefragnani alefragnani added the depends on Depends on issues from VS Code label Nov 18, 2019
@alefragnani alefragnani self-assigned this Nov 18, 2019
@alefragnani alefragnani modified the milestones: 10.9.0, 10.10.0 Nov 18, 2019
@alefragnani alefragnani removed this from the 10.10.0 milestone Jan 25, 2020
@alefragnani alefragnani added this to the 10.12.00 milestone Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on Depends on issues from VS Code enhancement good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants