According to the specified activationEvents in package.json which says:
"onCommand:tsserver.watchBuild", I expect the extension to be activated when I invoke the watchBuild command.
For this reason I expected this to work:
Expected behavior:
Open vim in my typescript project. (Don't open any source files as that would trigger activation events such as "onLanguage:typescript").
Confirm that coc-tsserver is not activated by running: CocList extensions and look for coc-tsserver.
Run command: CocCommand tsserver.watchBuild
Expect watchBuild command to work as normal (because coc-tsserver has bean activated).
Actual behavior:
Getting error after 3rd step: Error on notification "runCommand": Command tsserver.watchBuild not found
However, all of the other properly registered commands work as normal, i.e., the extension is activated when executed.
According to the specified
activationEvents
inpackage.json
which says:"onCommand:tsserver.watchBuild"
, I expect the extension to be activated when I invoke thewatchBuild
command.For this reason I expected this to work:
Expected behavior:
"onLanguage:typescript"
).CocList extensions
and look for coc-tsserver.CocCommand tsserver.watchBuild
watchBuild
command to work as normal (because coc-tsserver has bean activated).Actual behavior:
Getting error after 3rd step:
Error on notification "runCommand": Command tsserver.watchBuild not found
However, all of the other properly registered commands work as normal, i.e., the extension is activated when executed.