-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(DevTools): Add LaunchView property to DevToolsOptions #14008
feat(DevTools): Add LaunchView property to DevToolsOptions #14008
Conversation
Allow set the initial diagnostic view when launch DevTools
You can test this PR using the following package version. |
/// <summary> | ||
/// Diagnostic views available in DevTools | ||
/// </summary> | ||
public enum DevToolsViews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming: only flags enums are usually plural.
This probably should be DevToolsViewType/Kind
or something similar.
/// <summary> | ||
/// Set <see cref="DevToolsViews"/> that show when DevTools launch | ||
/// </summary> | ||
public DevToolsViews LaunchView { get; init; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why init
? All other options are mutable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think DevToolsOptions should be immutable. I proposed it for v 12.
You can test this PR using the following package version. |
What does the pull request do?
Allow set the initial diagnostic view when launch DevTools
What is the current behavior?
When launch DevTools alwayes show
Logical View
What is the updated/expected behavior with this PR?
Allow customize initial diagnostic view when launch DevTools
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Close #14006