Commit e67b939
refactor: improve type safety and strengthen extension tests
- Fix unsafe non-null assertions by properly handling undefined
activeTextEditor in getActiveSelectionLocation and related methods
- Add eslint-disable comments with justifications for necessary
non-null assertions
- Refactor extension tests to verify actual behavior (persisted data)
instead of only checking command execution success
- Remove redundant unit tests superseded by integration tests
- Update pre-commit hook to fail on ESLint warnings
- Add pretest:ext script to ensure compilation before extension tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent eeef9e1 commit e67b939
File tree
26 files changed
+731
-6528
lines changed- .husky
- src
- webview
- test
- extension/suite
- unit
26 files changed
+731
-6528
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
0 commit comments