-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
-await this.RegisterCommandsAsync();
+await Command1.InitializeAsync(this);
+await Command2.InitializeAsync(this);
+await Command3.InitializeAsync(this);
+await Command4.InitializeAsync(this); |
Beta Was this translation helpful? Give feedback.
RegisterCommandsAsync
is just a shortcut for callingInitializeAsync
on each command type. If you need the commands to be registered in a specific order, you can register them manually in the desired order.