Skip to content

Move NullAsynchronousOperationListenerProvider to source package#77187

Draft
tmat wants to merge 1 commit intodotnet:mainfrom
tmat:SourcePackages
Draft

Move NullAsynchronousOperationListenerProvider to source package#77187
tmat wants to merge 1 commit intodotnet:mainfrom
tmat:SourcePackages

Conversation

@tmat
Copy link
Member

@tmat tmat commented Feb 12, 2025

TODO: blocked by TypeScript

@ghost ghost added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 12, 2025
@tmat tmat force-pushed the SourcePackages branch 2 times, most recently from 9c02540 to 64eb0f7 Compare February 12, 2025 19:03
@tmat tmat force-pushed the SourcePackages branch 2 times, most recently from bf4b445 to 2e173a0 Compare February 13, 2025 21:29
@tmat tmat marked this pull request as ready for review February 13, 2025 21:32
@tmat tmat requested a review from a team as a code owner February 13, 2025 21:32
@tmat
Copy link
Member Author

tmat commented Feb 13, 2025

@dotnet/roslyn ptal

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; I didn't look in detail to see if any of the files that got a #nullable enable added were missing any ?.

@@ -0,0 +1,2 @@
[*.cs]
generated_code = true No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the clasp source package, I specifically had issues with compiler documentation warnings as well
https://github.com/dotnet/roslyn/blob/main/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/contentFiles/.editorconfig#L14C19-L14C25
Not sure if that should be included, or if there is a better way to disable it

@tmat tmat changed the title Fix issues with source packages Move NullAsynchronousOperationListenerProvider to source package May 9, 2025
@tmat tmat marked this pull request as draft May 9, 2025 17:50
@tmat tmat mentioned this pull request May 9, 2025
[SuppressMessage("Style", "VSTHRD200:Use \"Async\" suffix for async methods", Justification = "This is a Task wrapper, not an asynchronous method.")]
public static Task CompletesTrackingOperation(this Task task, IDisposable token)
{
if (token == null || token == EmptyAsyncToken.Instance)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token is never null here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants