Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>WHERE — Workspace InspectorNew to Visual Studio Code? Get it now.
WHERE — Workspace Inspector

WHERE — Workspace Inspector

Preview

WHERE Tools by Ahmad Saad

|
8 installs
| (0) | Free
Follow environment sources and compare execution contexts in one local investigation workspace.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WHERE - Workspace Inspector

One local VS Code extension for execution comparisons and observed dotenv sources.

Install

In VS Code, open Extensions > ... > Install from VSIX and choose WHERE_0.2.0_Preview.vsix. Open a trusted project and run WHERE: Open workspace inspector. This keeps the existing identity ahmadsaad-where.where-dotenv and replaces WHERE 0.1.2 when installed as an update.

Requires VS Code 1.99 or later. Source development requires Node.js 22 or later. The minimum VS Code version increased from WHERE 0.1.2 (1.95).

Investigate

  1. Use Run with WHERE to start an existing npm script or a Node.js file in a normal VS Code task terminal. The project must already contain dotenv to trace its calls. WHERE does not install project dependencies or edit application files.
  2. The first observed process checkpoint joins the execution timeline. Use Environment > Live investigation to inspect current source states and choose among observed processes.
  3. Save checkpoint freezes the current environment/source evidence for comparison. Later heartbeats and file edits do not rewrite earlier checkpoint evidence. Final observed exit status can still complete a run.
  4. Select a baseline first, then the execution to inspect. Comparison shows context differences and ranked leads. Environment displays the inspected execution's saved provenance.
  5. Start context observation to passively collect supported terminal/task/debug metadata. Capture runtime in terminal explicitly probes Node or Python in an idle shell-integrated terminal. These are new processes, not reconstruction of earlier commands.
  6. Copy report or save Markdown/JSON exports a combined, sanitized investigation.

The interface follows the VS Code theme. It uses a compact execution rail, a ruled comparison table, expandable source rows and field-level evidence confidence. There are no network fonts, animations, third-party frontend frameworks or decorative generated images.

Existing commands

where.open, where.run, where.refresh, where.explain and where.report remain available. Known environment variables retain hover explanations in JS/TS and dotenv editors; the Environment view includes a Needs attention filter. Source locations open only after workspace and real-path containment checks. Additional commands control capture, probes, history and privacy reset. ContextLens aliases are registered only when another installed extension does not already own them. If the separate ContextLens preview is installed, disable it to use one product interface; this build does not uninstall or alter other extensions.

What is observed

  • Terminal: recognized executable name, CWD and exit status when shell integration reports them. Full commands/arguments and terminal output are never captured.
  • Tasks/debuggers: declared launch settings plus directly reported lifecycle/exit evidence. A debugger terminating without an exited event retains unknown exit status.
  • Explicit probes: actual executable, runtime version, CWD, ordered PATH and selected environment keys for the newly started process.
  • Instrumented Node: actual dotenv calls, effective protected values, inherited/shadowed values, stale sources, runtime changes and relative definition locations.

Observed, inferred, declared and unknown are distinct. Missing evidence is never proof a variable is absent. Rules identify leads, not proven causation. WHERE never executes fixes or restarts an application automatically.

Launch semantics

Direct file launches load the observer through Node's --require argument. They preserve NODE_OPTIONS exactly, including absence or an empty value. Forked children inheriting execArgv can be traced independently. npm launches use an observer in NODE_OPTIONS so Node children can inherit it; the original task-shell value is retained for protected comparisons. If a dotenv file defines NODE_OPTIONS during npm instrumentation, that key's source is marked unverified and a direct file launch is recommended. The monitor's own options are not reported as a causal environment difference.

The selected launch runs in a new VS Code task environment. It does not inherit ad-hoc changes made in an unrelated interactive terminal. The actual task shell environment is read by the launcher rather than replaced with extension-host NODE_OPTIONS. Each launch receives a random correlation ID; process records stay separate by process identity and are never joined by timestamp alone.

Privacy and storage

See PRIVACY.md. No telemetry, account, external AI or cloud service is used. Instrumented Node applications transmit only HMAC fingerprints plus process/source metadata to a token-authenticated loopback collector. A separate workspace-scoped comparison key is obtained over the authenticated local channel. The long-lived SecretStorage master key never leaves the extension host and is not inserted into task definitions, terminal arguments or environment variables.

Explicit Node/Python runtime probes use a private one-shot local pipe. Their selected raw environment values pass through host memory for validation and protection, then are discarded. Task/debug declarations are likewise protected before persistence. This distinction matters: the application-observer mode keeps raw values in the app; explicit probes have a transient local host boundary. No raw environment/config values, terminal output or privacy keys are saved to history, displayed in the interface or included in exports.

Environment evidence uses its own comparison domain, separate from context metadata. Unknown/different domains never create a false value-change diagnosis. Values are not compared by treating an existing HMAC as a raw value.

History defaults to 200 checkpoints / 14 days, with individual deletion, workspace deletion and key reset. Evidence is pruned with history. Key reset clears this workspace, rotates the privacy domain and disconnects old live observers. Older workspaces retain sanitized history but their old protected values become incomparable with newly captured values.

Environment key names and relative source locations can identify a project. Known/common secret forms and private home paths are redacted, but arbitrary secret recognition cannot be guaranteed. Review exports before sharing. The user application and VS Code control their own terminal output and task history; WHERE does not rewrite application logs.

Scope and limits

Windows/PowerShell is the primary verified host. Node CJS, ESM, dotenv/config, explicit paths, multiple paths, override and repeated config calls are covered. Python runtime context is supported; Python dotenv tracing is not. Framework loaders, dotenv-expand/dotenvx, Node --env-file, arbitrary third-party process attachment and worker-thread semantics are not claimed as fully traced. A process that forcibly exits before its observer can exchange metadata may have no observed dotenv evidence.

Scans are bounded: 40 files by default (configurable to 100), 512 KB per source, 512 protected runtime keys, 32 live processes and 100 active launch identities per connection. Limits are surfaced as warnings and omitted keys stay unknown. WHERE_* names are reserved observer controls and excluded from comparison.

macOS/Linux and remote-host extension runs were not executed on this machine. Core path/location fixtures do not establish full platform support. Unknown exit codes and unsupported origins remain unknown. The tool does not guarantee detection of every configuration problem.

Source development

npm ci npm run verify npm run test:ui npm run package

The test suite includes both original regression suites, new protected-evidence validation matrices, actual Node/Python IPC probes and real instrumented Node/npm/fork scenarios. Set CONTEXTLENS_TEST_PYTHON to a Python executable to include that interpreter's IPC test. Chrome is used headlessly by test:ui.

For native integration checks, set CONTEXTLENS_TEST_VSCODE to Code.exe, CONTEXTLENS_TEST_PWSH to PowerShell 7 and CONTEXTLENS_TEST_PYTHON to Python, then run npm run test:extension. The suite uses its own profile, workspace and extensions directory under work/. A development-only companion verifies actual disk/SecretStorage persistence; Production extensions never expose test APIs.

legacy-dotenv contains isolated reference modules used by regression tests. The active implementation is src/dotenv plus runtime. The unchanged ContextLens core contract is retained internally; richer protected environment/source evidence uses a separately validated versioned attachment.

See docs/VERIFICATION.md and docs/MIGRATION.md for executed checks and compatibility details. MIT; bundled dotenv retains its BSD-2-Clause license.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft