-
Notifications
You must be signed in to change notification settings - Fork 274
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
ActivationEvents should be a list of the commands #377
Comments
Hi @jasonwilliams, Thanks for the feedback! I'm well aware that using As for the I'll move this improvement request to the backlog for now, and when enough Git Graph users use Visual Studio Code >= 1.46.0, I'll re-open it and migrate to use |
That’s fair, thanks for the detailed reply. |
Hi @jasonwilliams, Microsoft doesn't provide the Visual Studio Code version distribution of an extension users - extensions have to implement it themselves if they want this information. I implemented a custom mechanism myself in ./src/life-cycle/startup.ts, that generates an event when Git Graph is installed, updated or uninstalled. Each event only contains the Git Graph and Visual Studio Code version numbers, and a new 256 bit cryptographically strong pseudo-random nonce. Please read the comment at the start of the linked file, and the additionally linked URL at the end of the comments, to find out more about the design of this mechanism to provide me only this aggregate compatibility information (and nothing more), while also ensuring that it is completely anonymous, non-personal, and cannot be correlated (which was extremely important to me, and fundamental to my design choices). I've found that having this basic Visual Studio Code version distribution has proved itself extremely valuable in coordinating the long-term delivery of new capabilities to Git Graph, without excluding too many users in the process. |
@mhutchie Gentle reminder about this issue.
Is this still the case today? |
Hi @mhutchie, Our VS Code Development Workshop, using Git Graph extension, is becoming richer and richer by adding extensions from the marketplace or that we develop ourselves. We are seeing increasingly long startup times and delays before being able to work with our Development Workshop...
We are now on version 1.96.x. Thanks. |
Hey, great extension!
Minor nitpick.
Using * here: https://github.com/mhutchie/vscode-git-graph/blob/develop/package.json#L39 isn’t great practise because it starts up the extension when it’s not needed, it can also block VSCode during start up.
It would be better to replace this with an array of the commands that trigger this extension. Similar to what I’ve done here: https://github.com/jasonwilliams/anki/blob/master/package.json#L18
If you really need the extension to be running when VSCode starts up you could switch to
onStartupFinished
.https://code.visualstudio.com/api/references/activation-events#onStartupFinished
The text was updated successfully, but these errors were encountered: