This issue has been moved from a ticket on Developer Community.
For context, I have converted a class full of static methods and properties into a static class full of extension methods using the existing syntax (e.g. public string GetSomeComputedValue(this IConfiguration config) - not the new extension syntax. I am in the process of updating the calling code to call the extension method properly; I get a red squiggly line with an error advising that the extension method cannot be found, suggesting that I am missing a using directive.
When pressing [Ctrl]+[.] to access the available options, it only includes "Invert If". I expect it to recognise that the extension method is in a particular namespace and suggest adding the relevant using directive. It is annoying to have to scroll all the way to the top of the file and manually type in the using directive, especially when CoPilot automatically adds the required using directives when cutting/copying & pasting code between classes.
I seem to recall that Visual Studio 2019 would have this relevant menu item.
Original Comments
Feedback Bot on 12/10/2025, 00:10 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 1/6/2026, 01:25 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
This issue has been moved from a ticket on Developer Community.
For context, I have converted a class full of static methods and properties into a static class full of extension methods using the existing syntax (e.g.
public string GetSomeComputedValue(this IConfiguration config)- not the newextensionsyntax. I am in the process of updating the calling code to call the extension method properly; I get a red squiggly line with an error advising that the extension method cannot be found, suggesting that I am missing a using directive.When pressing [Ctrl]+[.] to access the available options, it only includes "Invert If". I expect it to recognise that the extension method is in a particular namespace and suggest adding the relevant using directive. It is annoying to have to scroll all the way to the top of the file and manually type in the using directive, especially when CoPilot automatically adds the required using directives when cutting/copying & pasting code between classes.
I seem to recall that Visual Studio 2019 would have this relevant menu item.
Original Comments
Feedback Bot on 12/10/2025, 00:10 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 1/6/2026, 01:25 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.