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

C# Intellisense parameter info stops working #74500

Closed
vsfeedback opened this issue Jul 23, 2024 · 2 comments · Fixed by #74510
Closed

C# Intellisense parameter info stops working #74500

vsfeedback opened this issue Jul 23, 2024 · 2 comments · Fixed by #74510
Labels
Area-IDE Bug untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
In the following C# code, the Parameter Info feature does not work. And it stops working everywhere until restarting Visual Studio.

class C {
	void _Caller() {
		M(c: ); // To reproduce, click inside ( ) and press Ctrl+Shift+Space.
	}

/// <summary>
	/// About M.
	/// </summary>
	/// <param name="a">About a.</param>
	/// <param name="b">About b.</param>
	/// <param name="c">About c.</param>
	public static void M(int a = 0, int b = 0, int c = 0) { }
}

Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.11.0 Preview 4.0
Windows 11


Original Comments

Feedback Bot on 7/22/2024, 11:49 PM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 23, 2024
@sharwell
Copy link
Member

argumentCount < argumentIndex. 1 < 2
Parameter name: argumentIndex
   at Microsoft.CodeAnalysis.SignatureHelp.SignatureHelpItems..ctor(IList`1 items, TextSpan applicableSpan, Int32 argumentIndex, Int32 argumentCount, String argumentName, Nullable`1 selectedItem)
   at Microsoft.CodeAnalysis.SignatureHelp.AbstractSignatureHelpProvider.CreateSignatureHelpItems(IList`1 items, TextSpan applicableSpan, Nullable`1 state, Nullable`1 selectedItemIndex, Int32 parameterIndexOverride)
   at Microsoft.CodeAnalysis.CSharp.SignatureHelp.InvocationExpressionSignatureHelpProviderBase.<GetItemsWorkerAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.SignatureHelp.AbstractSignatureHelpProvider.<GetItemsAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.<PerformFunctionAsync>d__3`1.MoveNext()

@sharwell sharwell added the Bug label Jul 23, 2024
@CyrusNajmabadi
Copy link
Member

hrmm... this doesn't repro for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants