Code reference detail
cli-version-helpers.ts
reqlan rq/extension/host/packages/extension/src/extension/cli-version-helpers.ts
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| cli_version_check | Once [activation.background_startup] start tasks complete — index open and language client running — ["../../../packages/extension/src/extension/main.ts"] calls the CLI version check once per activation, fire-and-forget inside its own error boundary, so the check must not fail startup. The check compares the installed CLI with the latest published release: - Installed version: run `reqlan --version`, then `rq --version`, with a bounded timeout and hidden Windows console ( ["../../../packages/extension/src/shared/hidden-exec-file.ts"] ). The first binary on PATH decides. No binary on PATH means there is nothing to upgrade, so the check stays silent. - Latest version: the npm registry `latest` manifest for `@reqlan/cli`. An unreachable or malformed answer stays silent — network trouble must not nag the user. When the installed strict `X.Y.Z` version is older than the latest, a warning names both versions and offers an Upgrade CLI button. The button opens a visible terminal that runs `npm install -g @reqlan/cli@latest`, so npm output and errors stay user-visible. Parsing and comparison live in ["../../../packages/extension/src/extension/cli-version-helpers.ts"]; VS Code glue lives in ["../../../packages/extension/src/extension/cli-version-check.ts"]. [warning_suppression] | 0.042 |
Reference labels
cli_version_check