OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.79k stars 420 forks source link

Unable to see all completions or diagnostics in LSP mode #1666

Open patilarpith opened 4 years ago

patilarpith commented 4 years ago

Running omnisharp-roslyn running in -lsp mode and the project is initialised with csproj file targetting netcoreapp3 framework.

I see no errors in initialisation and the project is loaded successfully.

  1. On textDocument/completion request, I only see responses of global keywords. No completion for inbuilt classes or Namespaces.

    For eg: Triggering textDocument/completion for Console. results in zero suggestions.

  2. I don't see any diagnostics information pushed from the server either.

Versions: dotnet sdk: 3.1.100 omnisharp roslyn: 1.34.9 (latest) Language client: monaco-languageclient monaco-editor: Mono: Shipped with omnisharp-roslyn

Here is a minimum setup of the project: https://github.com/patilarpith/monaco-languageclient-omnisharp-lsp

razzmatazz commented 4 years ago

We are encountering the same issue in:

The think I is, if I move the cursor in my tests a little bit (up), I can sometimes manage to get the proper list of completions so it seems that the server and the editor contents get out of sync for some reason.

There are other (seemingly) related issues already registered, where the editor is out of sync with the server:

easbarba commented 4 years ago

same here!

razzmatazz commented 4 years ago

I believe this has been fixed by:

(not released yet, though)