-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix: view management, don't show trust & connect when not needed #377
fix: view management, don't show trust & connect when not needed #377
Conversation
4e58bed
to
6396f6b
Compare
Signed-off-by: Bastian Doetsch <[email protected]>
Signed-off-by: Bastian Doetsch <[email protected]>
Signed-off-by: Bastian Doetsch <[email protected]>
6396f6b
to
fb90097
Compare
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-explicit-any | ||
declare const acquireVsCodeApi: any; | ||
|
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.
Is it correct to say that this package could bring the types we need?
DefinitelyTyped/DefinitelyTyped#53370
https://www.npmjs.com/package/@types/vscode-webview
If so, do you think we could start using them?
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.
Yes, let's do that, but put that into a different PR
lineOnly: !!lineOnly, | ||
lineOnly: lineOnly, |
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.
This operator forces the conversion of truthy/falsy values to primitive booleans. Do we need to work with loose truthy/falsy values?
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.
This seems to be a guaranteed boolean, so we don't need the forced conversion.
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.
Thank you :)
Signed-off-by: Bastian Doetsch <[email protected]>
Description
Previously, during plugin startup, "trust & connect" was shown in the welcome dialog. Now, during startup, a message is shown that the plugin is still starting. Views are now initialized with reasonable defaults and only displayed when needed.
Also removed the "feature select" view that was not shown anymore anyway. Boy Scouts Rule!
Checklist
Screenshots / GIFs
Before:
https://github.com/snyk/vscode-extension/assets/20150761/fdeb9a93-1f4c-4831-95c2-1d0c2eeb8eb2
Screenrecording After:
https://github.com/snyk/vscode-extension/assets/20150761/d2ae2c58-0721-45ac-9690-7083b9ec7d47