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

Test: Improved ESLint security flow #107584

Closed
2 tasks done
dbaeumer opened this issue Sep 28, 2020 · 4 comments
Closed
2 tasks done

Test: Improved ESLint security flow #107584

dbaeumer opened this issue Sep 28, 2020 · 4 comments

Comments

@dbaeumer
Copy link
Member

dbaeumer commented Sep 28, 2020

Refs: microsoft/vscode-eslint#1012

Complexity: 3

Create Issue


The flow of the ESLint execution confirmation dialog has been improved. Major changes are:

  • no modal dialog on startup anymore
  • An Allow Everywhere button.

To test please reset all former library decision you have made using the ESLint: Reset Library Decisions command. In addition you need to install the latest insider build from here: https://github.com/microsoft/vscode-eslint/releases/tag/2.1.9-insider

Please ensure that the following holds true:

  • when opening a workspace folder that has not been approved or denied yet a red ESLINT status icon is shown with a blocked sign. No modal dialog is shown. In addition when opening a file that should be validated using ESLint the file will have an special error attached to its first word indicating that ESLint is missing an execution confirmation. Ensure that such an error is only shown for the active editor and only if that file would be validated using ESLint (please note that the error might show up on markdown files since ESLint can validate markdown).
  • clicking on the status icon will open the modal dialog. Ensure that the description and the buttons make sense.
  • test the various buttons and make sure that an appropriate button is shown. To reset a last made decision use the ESLint: Reset Library Decisions command
  • if the execution is approved for a specific library (not Allow Everywhere) the ESLint status icon should only be visible when the active editor contains a document that is validated using ESLint.
@alexr00
Copy link
Member

alexr00 commented Sep 29, 2020

when opening a workspace folder that has not been approved or denied yet a red ESLINT status icon is shown with a blocked sign.

I do not see this icon right away. It only shows up once I have opened a file that ESLInt can be used for.

@alexr00
Copy link
Member

alexr00 commented Sep 29, 2020

How is the Disable button different from the Cancel button?

image

@dbaeumer
Copy link
Member Author

Cancel cancel the dialog and leaves that state as it was before opening the dialog. So if you were in Allow cancel keeps you in allow. Like other dialogs as well.

@kieferrm
Copy link
Member

Overall, this is a nice flow.

@bpasero bpasero closed this as completed Sep 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants