Idea detail
cli_version_check
reqlan rq/extension/host/cli-version-check.rq:4
Summary
Once background_startup start tasks complete — index open and language client running — 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 ( 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 cli-version-helpers.ts; VS Code glue lives in cli-version-check.ts.
warning_suppression
Navigation
Attributes
No attributes declared.
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | host_lifecycle | reqlan rq/extension/extension.rq | cli_version_check |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…