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

[BUG] Autocomplete does not work for Generic Function Calls & other Function Calls. #1707

Open
vhalragnarok-ffxiv opened this issue Jan 1, 2025 · 1 comment
Labels
area-intellisense Issues specific to IntelliSense area-roslyn bug Something isn't working

Comments

@vhalragnarok-ffxiv
Copy link

vhalragnarok-ffxiv commented Jan 1, 2025

Describe the Issue

When typing a Generic Function Call (such as GetComponent<>() in Unity), even when selecting the Generic Version of the function, VSCode does not complete the <> brackets nor the (). Instead it completed the word GetComponent. This happens on all function calls and generic method calls, I chose GetComponent<> since its frequently used in Unity.

https://www.youtube.com/live/eUxL6wo8ExU -Video 1. Fresh Install Windows.

https://www.youtube.com/live/RLyqBIRgHPE - Video 2. https://www.youtube.com/live/RLyqBIRgHPE (Linux Side).

I am more than happy to provide whatever logs you guys need.

Steps To Reproduce

Fresh Install. Look I have made 2 different live streams of this on 2 different days, and have tested this across 3 distributions of Linux, plus your OS. As I don't have access to a Mac, you'll just have to accept my word that this is absolutely how it is out of the gate.

Expected Behavior

At least does something like this:

GetComponent< >()
Where the space between the <> is where the mouse cursor lands, aka Mouse Cursor lands between the <> brackets in GetComponent<>()

Environment Information

  • OS: Tested with Arch Linux, Fedora Linux, KDE Neon (Ubuntu LTS basically) and Windows 10. Only OS I don't have is Mac.

Fresh install. VSCode 1.96.2, C# Dev Kit: 1.15.13

@vhalragnarok-ffxiv vhalragnarok-ffxiv added the bug Something isn't working label Jan 1, 2025
@phil-allen-msft phil-allen-msft added the area-unity Unity support label Jan 3, 2025
@jbevain jbevain added area-roslyn area-intellisense Issues specific to IntelliSense and removed area-unity Unity support labels Jan 6, 2025
@jbevain
Copy link
Member

jbevain commented Jan 6, 2025

This is not specific to Unity.

For a type:

class Foo
{
    public void Bar<T>()
    {
    }
}

The request is that completing:

var f = new Foo();
f.B

And choosing the Bar<> method, then it completes into:

f.Bar<|>()

Where | is the carret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellisense Issues specific to IntelliSense area-roslyn bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants