Skip to content

feat: improve activation error when forked extension is installed#613

Merged
mhuisi merged 1 commit intoleanprover:masterfrom
mhuisi:mhuisi/duplicate-command-error
Apr 23, 2025
Merged

feat: improve activation error when forked extension is installed#613
mhuisi merged 1 commit intoleanprover:masterfrom
mhuisi:mhuisi/duplicate-command-error

Conversation

@mhuisi
Copy link
Copy Markdown
Collaborator

@mhuisi mhuisi commented Apr 23, 2025

Every so often, users decide that they want to get (what they believe to be) the "full" Lean experience in VS Code and install every single Lean-related extension from the VS Code marketplace. While well-intentioned, since the marketplace also contains forks of our extension, this then leads to an internal activation error when VS Code's commands.registerCommand API throws an exception for trying to register duplicate commands.
This PR improves the error message that is displayed in this case to hint at the cause so that users are more likely to be able to fix it themselves without requiring assistance.

@mhuisi mhuisi merged commit d310b9c into leanprover:master Apr 23, 2025
2 checks passed
@mhuisi mhuisi deleted the mhuisi/duplicate-command-error branch October 21, 2025 12:41
@mhuisi mhuisi restored the mhuisi/duplicate-command-error branch October 28, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant