Skip to content
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 💡 Implement Using Copilot for NotImplementedException #77299

Open
wants to merge 120 commits into
base: main
Choose a base branch
from

Conversation

maryamariyan
Copy link
Member

@maryamariyan maryamariyan commented Feb 20, 2025

Offers 💡 Implement Using Copilot when NotImplementedException is present in code.

FixAll_Faster.mp4

ImmutableDictionary<SyntaxNode, ImmutableArray<ReferencedSymbol>> methodOrProperties,
CancellationToken cancellationToken)
{
if (GenerateImplementationService is null)
Copy link
Member

Choose a reason for hiding this comment

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

This bit makes it clear that GenerateImplemenationService shouldn't be declared as nullable. Why are null checks needed for fields that have been proven non-null in the constructor?

Copy link
Member Author

@maryamariyan maryamariyan Mar 7, 2025

Choose a reason for hiding this comment

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

So, it is totally possible for the service to be null, and that is when the the EA layer API that I am adding is not yet available to the copilot service. in that case, this will be null. The reason for null checks in ctor I believe is to report when this unwanted state is present. that's why I mentioned the dual insertion, when the newer roslyn package gets ingested by copilot service then this service will no longer be null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. 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.

6 participants