Commit 4f14e64
Fix code quality issues in CxAssistDisplayCoordinator and BaseRealtimeScannerService
CxAssistDisplayCoordinator:
- Add enabled-scanner filter in MergeUpdateFindingsForScanner() for consistency with UpdateFindings() and UpdateFindingsForFile()
- Remove "for testing" reference from UpdateFindingsForFile() production API documentation
- Clarify NormalizePath() defensive fallback behavior in comments
BaseRealtimeScannerService:
- Protect 5 TextDocument casting locations from InvalidCastException using safe 'as' operator with try-catch
- Added in: OnDocumentOpened, TrySyncLineChangeBaseline, OnTextChanged, OnDocumentClosing, InstantScanAsync
- Ensures scanner doesn't crash on unexpected COM object types
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 2ea459c commit 4f14e64
2 files changed
Lines changed: 52 additions & 8 deletions
File tree
- ast-visual-studio-extension/CxExtension/CxAssist
- Core
- Realtime/Base
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | | - | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
Lines changed: 48 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
305 | 314 | | |
306 | 315 | | |
307 | 316 | | |
| |||
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
361 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
362 | 379 | | |
363 | 380 | | |
364 | 381 | | |
| |||
380 | 397 | | |
381 | 398 | | |
382 | 399 | | |
383 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
384 | 409 | | |
385 | 410 | | |
386 | 411 | | |
| |||
434 | 459 | | |
435 | 460 | | |
436 | 461 | | |
437 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
438 | 472 | | |
439 | 473 | | |
440 | 474 | | |
| |||
486 | 520 | | |
487 | 521 | | |
488 | 522 | | |
489 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
490 | 533 | | |
491 | 534 | | |
492 | 535 | | |
| |||
0 commit comments