Can a VSCode extension activate method be async?
It seems to work.
I can't find anything that says not to do this.
None of the extension samples that I checked have async activate methods.
The code in VSCode extension Installation Dependency activation order does do it and the author says it works.
Is there any reason not to do this?
The reason I hope that I can have an async activate method is my extension activates on "*" because printing applies to all files. Some people are getting high extension CPU warnings. The official advice is to bundle with webpack but it seems to me this just turns the problem into an up-front cost.
Personally I never experience slow loading but that may be due to use of an SSD which would ameliorate the cost of lots of small files.
Some extension examples do it. Here are two for example: