1616using Microsoft . VisualStudio . Shell ;
1717using Microsoft . VisualStudio . Shell . Interop ;
1818using Microsoft . VisualStudio . Shell . TableManager ;
19- using Microsoft . VisualStudio . Text . Editor ;
20-
2119using Microsoft . VisualStudio . Shell . TableControl ;
22- using Microsoft . VisualStudio . Shell . TableManager ;
20+ using Microsoft . VisualStudio . Text . Editor ;
2321
2422namespace CodingWithCalvin . MCPServer . Services ;
2523
@@ -400,7 +398,7 @@ public async Task<int> ReplaceTextAsync(string oldText, string newText)
400398
401399 var count = 0 ;
402400 var searchPoint = textDoc . StartPoint . CreateEditPoint ( ) ;
403- EditPoint matchEnd = null ;
401+ EditPoint ? matchEnd = null ;
404402
405403 while ( searchPoint . FindPattern ( oldText , ( int ) vsFindOptions . vsFindOptionsMatchCase , ref matchEnd ) )
406404 {
@@ -410,7 +408,7 @@ public async Task<int> ReplaceTextAsync(string oldText, string newText)
410408
411409 if ( count > 0 )
412410 {
413- TextRanges tags = null ;
411+ TextRanges ? tags = null ;
414412 textDoc . ReplacePattern ( oldText , newText , ( int ) vsFindOptions . vsFindOptionsMatchCase , ref tags ) ;
415413 }
416414
@@ -1539,7 +1537,7 @@ public async Task<ErrorListResult> GetErrorListAsync(string? severity = null, in
15391537 }
15401538
15411539 // Cast to IErrorList to access the TableControl
1542- IErrorList errorList = errorListService as IErrorList ;
1540+ IErrorList ? errorList = errorListService as IErrorList ;
15431541 if ( errorList == null )
15441542 {
15451543 result . Items . Add ( new ErrorItemInfo
@@ -1731,7 +1729,7 @@ public async Task<OutputReadResult> ReadOutputPaneAsync(string paneIdentifier)
17311729 }
17321730
17331731 // Find the matching pane by name (works for both well-known and custom panes)
1734- EnvDTE . OutputWindowPane targetPane = null ;
1732+ EnvDTE . OutputWindowPane ? targetPane = null ;
17351733
17361734 foreach ( EnvDTE . OutputWindowPane outputPane in dte . ToolWindows . OutputWindow . OutputWindowPanes )
17371735 {
0 commit comments