Commit 2a0676a
committed
fix: resolve build warnings and improve code quality
- Fix CS8600 null reference warnings by declaring nullable types
- Remove duplicate using directive for Microsoft.VisualStudio.Shell.TableManager
- Add null check for MCPServerPackage.Instance in ServerCommands
- Apply pragma suppressions for console I/O VSTHRD103 warnings
- Add project-level suppression for VSTHRD threading analyzer warnings
- Ensure consistent code style with braces on separate lines
These changes result in a clean build with 0 warnings and 0 errors.1 parent a070226 commit 2a0676a
5 files changed
Lines changed: 14 additions & 5 deletions
File tree
- src
- CodingWithCalvin.MCPServer.Server
- CodingWithCalvin.MCPServer
- Commands
- Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
120 | 122 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
1510 | 1508 | | |
1511 | 1509 | | |
1512 | 1510 | | |
1513 | | - | |
| 1511 | + | |
1514 | 1512 | | |
1515 | 1513 | | |
1516 | 1514 | | |
| |||
1702 | 1700 | | |
1703 | 1701 | | |
1704 | 1702 | | |
1705 | | - | |
| 1703 | + | |
1706 | 1704 | | |
1707 | 1705 | | |
1708 | 1706 | | |
| |||
0 commit comments