You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add 'Run on save' feature to automatically re-run checks on file save
- Introduced a new setting `angularCodeQuality.runOnSave` to enable automatic re-running of relevant tools when files are saved.
- Updated the Problems panel in the background without notifications, supporting `.ts`, `.css`, `.scss`, and `package.json` files.
- Implemented debounce logic to optimize performance during rapid saves.
- Added documentation in CHANGELOG and README for the new feature.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
All notable changes to the Angular Code Quality Toolkit extension are documented in this file.
4
4
5
+
## [Unreleased]
6
+
7
+
### Added
8
+
9
+
-**Run on save.** New setting `angularCodeQuality.runOnSave` (default off): when enabled, saving a file re-runs the relevant tool and refreshes the Problems panel in the background — saving a `.ts` file re-runs ESLint and ts-prune, a `.css`/`.scss` file re-runs stylelint, and `package.json` re-runs depcheck. Runs are quiet (no notifications) and debounced, so a "Save All" triggers a single run instead of one per file.
10
+
5
11
## [0.3.1] - 2026-08-23
6
12
7
13
Same packaged extension as 0.3.0. Bumped because Open VSX treats versions as immutable — 0.3.0 was published, then deleted, and that identity cannot be reused.
|`angularCodeQuality.depcheck.ignores`|`[]`| Extra packages to hide (`*` wildcard, e.g. `@my-scope/*`). |
94
94
|`angularCodeQuality.revealOutputOnRun`|`false`| Auto-open the Output channel on each run. Off by default — findings go to the Problems panel; enable this only to watch raw tool logs. |
95
+
|`angularCodeQuality.runOnSave`|`false`| Re-run the relevant checks automatically when you save a file (see below). |
96
+
97
+
---
98
+
99
+
## Run on save
100
+
101
+
Set `angularCodeQuality.runOnSave` to `true` and the extension re-runs the relevant tool whenever you save — the Problems panel stays current without you triggering **Run all checks** by hand:
102
+
103
+
| You save… | It re-runs |
104
+
| --- | --- |
105
+
| a `.ts` file | ESLint + ts-prune |
106
+
| a `.css` / `.scss` file | stylelint |
107
+
|`package.json`| depcheck |
108
+
109
+
Runs happen **quietly** in the background (no notifications) and are **debounced**, so a "Save All" or a formatter re-saving triggers a single run rather than one per file. Off by default.
Copy file name to clipboardExpand all lines: package.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,11 @@
177
177
"type": "boolean",
178
178
"default": false,
179
179
"description": "Reveal the Angular Code Quality output channel automatically each time a command runs. Findings appear in the Problems panel; enable this only if you want to watch the raw tool logs."
180
+
},
181
+
"angularCodeQuality.runOnSave": {
182
+
"type": "boolean",
183
+
"default": false,
184
+
"description": "Automatically re-run the relevant checks when you save a file, updating the Problems panel in the background (no notifications). Saving a .ts file re-runs ESLint and ts-prune; a .css/.scss file re-runs stylelint; package.json re-runs depcheck. Runs are debounced so rapid saves trigger a single run."
0 commit comments