Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>auto-reload-windowNew to Visual Studio Code? Get it now.
auto-reload-window

auto-reload-window

Carl W

|
17 installs
| (0) | Free
automatically reload the VS Code window when a file changes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Available on the VS Code Marketplace.

Minimal VSCode extension to automatically reload the VSCode window when a file changes.

The intended use case is with extension development E.g. with extensions contributing a language grammar, the only way to make VS Code re-tokenize an open file from a language grammar that changed on disk is to reload the window. With this extension, such a reload can be configured to happen automatically every time the grammar changes.

Example configuration

Using project files as follows will automatically reload a development host window (only) when the grammar file changes:


// $PROJ/.vscode/settings.json:
{
  "auto-reload-window.enabled": "fromEnvVar",
}

// $PROJ/.vscode/launch.json:
{
  "configurations": [
    {
      "name": "Extension",
      "type": "extensionHost",
      "request": "launch",
      "args": [
        "--extensionDevelopmentPath=${workspaceFolder}"
      ],
      "env": {
        "VSC_ARW_ENABLED": "on",
        "VSC_ARW_GLOBS": "${workspaceFolder}/syntaxes/*.json"
      }
    }
  ]
}

Development

Set-up

git clone carlwr/vscode-auto-reload-window
cd vscode-auto-reload-window
pnpm install
pnpm build

pnpm build && pnpm eslint  # lint
pnpm build --package       # create .vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft