Ensure compatibility with CLI pre-version 3.0
With !62 (merged), the extension uses switches available in CLI version 3.0+. However, this is a breaking change for anyone using CLI version 2. It is OK that the client complains when it detects an older version of CLI, but we don't want it to break.
I suggest to change the logic of the extension such that it uses the switches according to:
- For CLI version 3.0.0 or newer: use
--token TOKEN
and--origin ide
. - For CLI version below 3.0.0: use
--api-token TOKEN
.