LSP message for Word Completion from Visual Studio

Sajith 46 Reputation points
2025-07-10T15:11:17.22+00:00

I have a Langauge Server (LSP) implemented in C#.

Have implemented textDocument/Hover and textDocument/Completion. This works fine on hover and typing in the editor. But Word Completion does not work.

Which LSP message is sent from Visual Studio for Word Completion (Ctrl+Space)?

I am not getting any message sent to LSP server when pressing Ctrl+Space.

Developer technologies | Visual Studio | Extensions

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Omkara Varshitha Kunapalli (INFOSYS LIMITED) 235 Reputation points Microsoft External Staff
    2025-07-30T08:59:02.8066667+00:00

    For Word Completion (Ctrl+Space) in Visual Studio, the expected LSP message is:

    textDocument/completion

    If your server isn’t receiving this, check:

    • Your server’s completionProvider includes triggerCharacters and resolveProvider.
    • Ctrl+Space is mapped to Edit.CompleteWord in Visual Studio settings.
    • The cursor is in a valid context (not in comments or strings).

     

    0 comments No comments
  2. Omkara Varshitha Kunapalli (INFOSYS LIMITED) 235 Reputation points Microsoft External Staff
    2025-08-04T08:31:09.1266667+00:00

    Following up on the ticket—please let us know if the issue persists or if everything is working fine now."

     

    0 comments No comments
  3. Omkara Varshitha Kunapalli (INFOSYS LIMITED) 235 Reputation points Microsoft External Staff
    2025-08-07T09:02:56.8066667+00:00

    "Following up on the ticket—please let us know if the issue persists or if everything is working fine now."