Auto-Restarter: TypeScript, ESLint, Oxlint & Oxfmt ServersMonitors project configuration and automatically restarts TypeScript, ESLint, Oxlint, and Oxfmt language servers when relevant files change. ForkFork of vscode-restart-ts-server-button by Neotan. Changes include:
Make sure
|
| Server | Extension required | Default |
|---|---|---|
| TypeScript | vscode.typescript-language-features (built-in) |
"auto-detect" |
| ESLint | dbaeumer.vscode-eslint |
"auto-detect" |
| Oxlint | oxc.oxc-vscode |
"auto-detect" |
| Oxfmt | oxc.oxc-vscode |
"auto-detect" |
| tsgo (TypeScript Native Preview) | TypeScriptTeam.native-preview |
"auto-detect" |
Each server's monitorFilesFor* setting accepts three values:
true— monitor files; warn if the extension is not found or not active"auto-detect"— monitor files; silently skip if the extension is not found or not activefalse— disable monitoring entirely
Servers that watch their own config
Recent oxlint, oxfmt, tsgo and tsrs servers watch their config files themselves and reload on change. For those versions, changes to their own monitored files no longer trigger a restart. package.json and lockfile changes still restart them, to pick up a new binary or a config preset updated in node_modules.
| Server | Version source | Skipped since |
|---|---|---|
| Oxlint | oxlint in node_modules (not when oxc.path.oxlint is set) |
config files 1.29.0, tsconfig 1.33.0 (not when oxc.tsConfigPath is set) |
| Oxfmt | oxfmt in node_modules (not when oxc.path.oxfmt is set) |
config files 0.15.0, .editorconfig 0.24.0, .prettierignore 0.72.0 |
| tsgo / tsrs | package behind js/ts.tsdk.path, typescript.tsdk (native only) or typescript.native-preview.tsdk, else the TypeScript Native Preview extension |
tsrs: any version; @typescript/native-preview / typescript 7: dev builds from 20250822; extension 0.20250822.0 |
When the version cannot be resolved, the server is restarted.