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

[LSP] Adding new files to the project? #1506

Open
vincentwoo opened this issue May 25, 2019 · 3 comments
Open

[LSP] Adding new files to the project? #1506

vincentwoo opened this issue May 25, 2019 · 3 comments
Labels

Comments

@vincentwoo
Copy link

Hi there,

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?

@filipw filipw added the lsp label Jun 4, 2019
@vincentwoo
Copy link
Author

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.

@vincentwoo
Copy link
Author

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.

@razzmatazz
Copy link
Contributor

I believe sync issues (at least partially) are fixed with:

The underlying issue was in LSP library:

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

3 participants