You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[severity:It's more difficult to complete my work]
When a constructor is invoked for a class type that is defined by a function's return type, intellisense does not display the constructor's parameters. In the first screenshot (return new (...), I am attempting to open the intellisense by pressing Ctrl + Shift + Space, but nothing opens. In the second screenshot (return new MyClass(...), I am able to open the intellisense by pressing Ctrl + Shift + Space to see the constructor takes one string.
Original Comments
Feedback Bot on 5/6/2024, 01:51 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
dibarbet
changed the title
Constructor intellisense not available for implied C# types
Signature help does not appear for target typed new with partial parameter
May 9, 2024
Specifically the difference here is that invoking cntrl+shift+space when using the target typed new constructor does not work when the parameter is partially input
Does not work at caret ($$)
public class MyClass(string arg) { }
public MyClass Example1()
{
string test = "";
return new(tes$$)
}
Signature help works at caret ($$):
public class MyClass(string arg) { }
public MyClass Example2()
{
string test = "";
return new MyClass(tes$$)
}
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work]
When a constructor is invoked for a class type that is defined by a function's return type, intellisense does not display the constructor's parameters. In the first screenshot (
return new (...
), I am attempting to open the intellisense by pressing Ctrl + Shift + Space, but nothing opens. In the second screenshot (return new MyClass(...
), I am able to open the intellisense by pressing Ctrl + Shift + Space to see the constructor takes one string.Original Comments
Feedback Bot on 5/6/2024, 01:51 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: