|
I need one command to be registered the last, since it dinamically changes some other commands state. If this command is loaded first and tries to access other commands, it returns a null exception. However, I can't figure the order in which the commands are being loaded. I tried changing the priority in the .vsct file, but it is not working. Any suggestions? |
Answered by
reduckted
Nov 5, 2024
Replies: 1 comment 1 reply
|
-await this.RegisterCommandsAsync();
+await Command1.InitializeAsync(this);
+await Command2.InitializeAsync(this);
+await Command3.InitializeAsync(this);
+await Command4.InitializeAsync(this); |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RegisterCommandsAsyncis just a shortcut for callingInitializeAsyncon each command type. If you need the commands to be registered in a specific order, you can register them manually in the desired order.