Commit d310b9c
authored
feat: improve activation error when forked extension is installed (#613)
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.1 parent 0d094aa commit d310b9c
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| |||
0 commit comments