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

What's the 'T' in auto completion as I type 't', and how to get rid of it? #8050

Open
DragoonKiller opened this issue Mar 8, 2025 · 1 comment
Labels

Comments

@DragoonKiller
Copy link

Image

This is a newly created untitled file, without any project opened. And here's a 'T' on the top of auto-completion.
Each time I want to type identifier 't' it comes out and take the first place... Which is really annoying..

Disabling C# extension will remove all auto completion including the 'T'.

@JoeRobich
Copy link
Member

The LSP is returning T as a type parameter completion item which does not make sense in context.

completionItem/resolve response
[Trace - 2:42:46 PM] Received response 'completionItem/resolve - (604)' in 2ms.
Result: {
    "label": "T",
    "kind": 25,
    "documentation": {
        "kind": "markdown",
        "value": ""
    },
    "insertTextFormat": 1,
    "insertTextMode": 1,
    "textEdit": {
        "range": {
            "start": {
                "line": 5,
                "character": 8
            },
            "end": {
                "line": 5,
                "character": 9
            }
        },
        "newText": "T"
    },
    "commitCharacters": [
        " ",
        "{",
        "}",
        "[",
        "]",
        "(",
        ")",
        ".",
        ",",
        ":",
        ";",
        "+",
        "-",
        "*",
        "/",
        "%",
        "&",
        "|",
        "^",
        "!",
        "~",
        "=",
        "<",
        ">",
        "?",
        "@",
        "#",
        "'",
        "\"",
        "\\"
    ],
    "data": {
        "ResultId": 5,
        "TextDocument": {
            "uri": "untitled:Untitled-1"
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants