-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds XML Comments to FileSystemProxy and SpecialDirectoriesProxy #12141
Adds XML Comments to FileSystemProxy and SpecialDirectoriesProxy #12141
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12141 +/- ##
===================================================
- Coverage 75.43315% 75.42900% -0.00415%
===================================================
Files 3103 3103
Lines 634314 634317 +3
Branches 46876 46876
===================================================
- Hits 478483 478459 -24
- Misses 152407 152433 +26
- Partials 3424 3425 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add < see cref > when we are referring to specific type or value in the description
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
Public Sub DeleteDirectory(directory As String, onDirectoryNotEmpty As DeleteDirectoryOption) | ||
FileIO.FileSystem.DeleteDirectory(directory, onDirectoryNotEmpty) | ||
End Sub | ||
|
||
''' <summary> | ||
''' Delete the given directory, with options to recursively delete, show progress UI, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
''' Delete the given directory, with options to recursively delete, show progress UI, | |
''' Deletes the given directory, with options to recursively delete, show progress UI, |
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
@lonitra |
…rvices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]>
…rvices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]>
…rvices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]>
…rvices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]>
yes unfortunately, we have some inconsistencies here. Ideally all instances cref should be added when a specific value is being referred to in documentation xml -- especially if it is public |
@lonitra i have no issue doing that but it will really clutter up the comments. There are very few cases where that is done, usually if it’s in a parameter/return/value it’s not repeated in the summary. VS has a quick fix if they are fully qualified otherwise you need to qualify first and then do CodeFix. I thought about an analyzer for this but it would not be an insignificant effort. Maybe a modification of existing CodeFix to add an Analyzer would be possible. For things like ComboBox that are used multiple times in a sentence/paragraph would you on do the first instance in the section only or all? |
I see, good point. If it will clutter things up making readability difficult then let's just make sure that there is a cref for the first time the value is referenced so that it is easy to navigate to if readers are curious to know more information about the value. |
@paul1956 I agree the first use would be best but the majority of existing comments put the cref in the value or return section if there is only 1 cref. Moving it is easy but should be a separate PR. Maybe we should open a Tracking issue? I can fix this PR to follow these guidelines today. |
I'm not sure I follow this, could you share an example of what you are referring to? Is the issue that it is referenced in the summary but cref exists only in value or return section?
I agree, a separate PR focusing on this would be easier to review. |
Just 1 of many examples where see cref is repeated multiple times even in one section (twice in summary) and once in returns.
Examples where it is only in value but it could be in summary (I like this one).
Example with it is only in summary. |
…rvices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]>
…rvices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]>
@Tanya-Solyanik this should be ready to review with the updated abbreviated comments. The stuff needing cref has been deleted per your feedback. |
@lonitra after you approved Tanya-Solyanik had comments that need fixing. Could I get another review, I fixed all issues. |
@paul1956 Thank you for addressing comments! |
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Outdated
Show resolved
Hide resolved
src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb
Show resolved
Hide resolved
@Tanya-Solyanik added cref's ready to review. Some of the comments were updated because VB does not expose all the same options the underlaying code does. |
Changes LGTM. I took a look at history again and it looks like we are no longer document a specific path and refer to docs now. |
…net#12141) * Add XML Comments related to FileSystemProxy which includes SpecialDirectoriesProxy * Fix some types * Add some language keywords * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * PR feedback * Update all XML comments * Fix Typo in FileSystemProxy that caused build to fail. * Update XML Coments * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]> * Redo all the comments in SpecialDirectoriesProxy * Add cref per PR feedback and changed type to Namespace * PR Feedback to add see cref's --------- Co-authored-by: Loni Tra <[email protected]> Co-authored-by: Tanya Solyanik <[email protected]>
…ifying PR #11863 (#12261) * No code Chnages just formatting * Add tests for SignleInstanceHelper from #11863 * Moved to SDK RC2 (#12254) * Moved to SDK RC2 to get the same build errors in VS and CLI build and be able to fix them. Before this change the IntPreview version of VS was correctly complaining about a redundant cast(IDE0004) in ToolStrip.cs g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) [ new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1), new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1) ]); But the CLI build required this cast. After the upgrade to RC2, IDE0300 - Collection initialization can be simplified - became more robust and required code fixes that use collection expressions applied to the solution. * Adds XML Comments to FileSystemProxy and SpecialDirectoriesProxy (#12141) * Add XML Comments related to FileSystemProxy which includes SpecialDirectoriesProxy * Fix some types * Add some language keywords * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb Co-authored-by: Loni Tra <[email protected]> * PR feedback * Update all XML comments * Fix Typo in FileSystemProxy that caused build to fail. * Update XML Coments * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]> * Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb Co-authored-by: Tanya Solyanik <[email protected]> * Redo all the comments in SpecialDirectoriesProxy * Add cref per PR feedback and changed type to Namespace * PR Feedback to add see cref's --------- Co-authored-by: Loni Tra <[email protected]> Co-authored-by: Tanya Solyanik <[email protected]> * [main] Update dependencies from dotnet/runtime (#12266) [main] Update dependencies from dotnet/runtime * Fix IDE0002 in LogTests.cs (#12265) Fix IDE0002 in LogTests.cs * [main] Update dependencies from dotnet/arcade (#12271) [main] Update dependencies from dotnet/arcade * [main] Update dependencies from dotnet/runtime (#12272) [main] Update dependencies from dotnet/runtime * Improve code coverage for FileLogTraceListener from simplifying PR #11863 (#12264) * Improve code coverage for FileLogTraceListener * Update src/Microsoft.VisualBasic/tests/UnitTests/Microsoft/VisualBasic/Logging/FileLogTraceListenerTests.cs Thanks I had no idea about boolData Co-authored-by: Loni Tra <[email protected]> --------- Co-authored-by: Loni Tra <[email protected]> * Switch default feed to use wildcards only (#12268) * Switch default feed to full wildcard * Add other wildcards back * Move local closer to usage * PR Feedback * Address PR Feedback * PR Feedback * PR Feedback inline private Sub, reuse commandLine --------- Co-authored-by: Tanya Solyanik <[email protected]> Co-authored-by: Loni Tra <[email protected]> Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Rich Lander <[email protected]>
Addresses adding XML comment #11984
Proposed changes
Add XML Comments to FileSystemProxy and SpecialDirectoriesProxy, they are together because FileSystem references SpecialDirectories.
Customer Impact
Regression?
Risk
Microsoft Reviewers: Open in CodeFlow