Remove unnecessary commands from activationEvents#2153
Conversation
|
We might also be able to remove |
shati-patel
left a comment
There was a problem hiding this comment.
Just one comment, otherwise LGTM!
Re:
According to the linting in my VS Code we can remove quite a few more. I see the ones currently included in this PR are just the ones related to variant analysis.
I think we can remove all of the indicated events? What do you think? Does your VS Code also give these warnings.
This is new from VS Code version 1.74.0, so let's not remove these yet (until we set that as our earliest supported VS Code version). We have an internal issue tracking this 💪🏽
| "onCommand:codeQL.chooseDatabaseGithub", | ||
| "onCommand:codeQLDatabases.chooseDatabase", |
There was a problem hiding this comment.
Agree with @robertbrignull that onCommand:codeQLDatabases.chooseDatabase can be removed, since it doesn't exist 😄
| "onCommand:codeQL.chooseDatabaseGithub", | |
| "onCommand:codeQLDatabases.chooseDatabase", | |
| "onCommand:codeQL.chooseDatabaseGithub", |
|
I bow to @shati-patel here 🙇 so please go with her review. |
2494de5 to
275c16d
Compare

VSCode Docs: https://code.visualstudio.com/api/references/activation-events
From the docs:
Your extension becomes activated when the Activation Event happens.. This means only commands that can be triggered from the command palette need to be listed in theactivationEvents. All other events can only be executed when the extension is already activated.Checklist
ready-for-doc-reviewlabel there.