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

Allow users to specify open behavior for new project #360

Merged
merged 1 commit into from
May 8, 2018
Merged

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented May 8, 2018

Fixes #39

After creating a new project, the user will be given three options to open that project:
screen shot 2018-05-08 at 11 13 47 am

This is what it looks like if they select "Always use this choice":
screen shot 2018-05-08 at 11 13 36 am

It's a user setting in the background, so people can always change it if they want. I also made sure to add telemetry to see if this kind of quick pick is worth doing in other places as well.

@ejizba ejizba requested a review from a team May 8, 2018 18:21
Copy link
Member

@nturinski nturinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very creative way to make a checkbox 😄

}

const uri: vscode.Uri = vscode.Uri.file(fsPath);
if (openBehavior === OpenBehavior.AddToWorkspace) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it works, but why don't you have to specify OpenInCurrentWindow here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's included in the 'else' case. The boolean I pass in with 'openBehavior === OpenBehavior.OpenInNewWindow /* forceNewWindow */ will evaluate to false and use the current window

@ejizba ejizba merged commit 577056c into master May 8, 2018
@ejizba ejizba deleted the ej/folder branch May 8, 2018 23:40
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants