Commit e13d6cd
committed
docs: Document why activationEvents are necessary
Added comprehensive documentation to CLAUDE.md explaining why the
activationEvents array in package.json must be kept.
Key clarification:
- VS Code 1.74+ made onCommand activation implicit (for commands)
- onLanguage activation is DIFFERENT and still required
- Our extension activates on file open, not command invocation
- Without onLanguage events, extension won't be ready when TS/JS files open
This addresses a common misconception and prevents future audit questions
about why we don't remove activationEvents.
References:
- VS Code 1.74 Release Notes (implicit command activation)
- StackOverflow discussion (specifically about onCommand, not onLanguage)
Closes final audit point - all implementation complete.1 parent bf3c6a9 commit e13d6cd
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
221 | 251 | | |
222 | 252 | | |
223 | 253 | | |
| |||
0 commit comments