You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have omnisharp-roslyn running in -lsp mode. I initialize omnisharp in a directory with a sln and csproj file, along with a Program.cs lying around. I find that if I change Program.cs and send textDocument/completion requests, I get results back.
I find also, however, that if I save, say, Foo.cs, and notify omnisharp about it with a textDocument/didOpen subsequent textDocument/completion results return only empty array.
Is there some other call that omnisharp requires in LSP mode to register new files in the current directory?
The text was updated successfully, but these errors were encountered:
Anyone know anything about this? Still seems to be happening as of latest release. What sequence of notifications must be sent to the LSP to inform them of a new .cs file? We are sending didOpen / didChange.
I also find that I can only get publishDiagnostics results from the LSP regarding a file if that file is present when the LSP boots up - if I create a file (and inform the LSP of the file through didOpen/didChange) it does not ever emit diagnostics events for that file.
Hi there,
I have omnisharp-roslyn running in
-lsp
mode. I initialize omnisharp in a directory with asln
andcsproj
file, along with aProgram.cs
lying around. I find that if I changeProgram.cs
and sendtextDocument/completion
requests, I get results back.I find also, however, that if I save, say, Foo.cs, and notify omnisharp about it with a
textDocument/didOpen
subsequenttextDocument/completion
results return only empty array.Is there some other call that omnisharp requires in LSP mode to register new files in the current directory?
The text was updated successfully, but these errors were encountered: