-
Notifications
You must be signed in to change notification settings - Fork 419
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
OmniSharp seems to randomly forget EditorConfig state #1955
Comments
I have moved this into omnisharp-vscode as multi-root workspaces is a VS Code concept. |
@filipw unfortunately, it seems I was wrong. I'm now able to reproduce this on a smaller project using a single workspace. I'm starting to think it has nothing to do with the workspace setup, and might be a bug in omnisharp-roslyn after all. I've also noticed that whenever I edit I'll try to put together a smaller repro project. |
Edited title to show this isn't multiroot workspace dependant. Moving to OmniSharp-Roslyn |
I don't have a reduced repro yet, but what I can say is that having VS Code open while at the same time running e.g. |
I think I've managed to find two ways to reliably repro the issue:
At this point, OmniSharp seems to forget all its EditorConfig state. Another way, with the same project:
Again OmniSharp seems to forget its EditorConfig state. |
Editing a project file seems to trigger the issue consistently even after restarting OmniSharp from within VS Code. It's inconsistent whether |
Steps to reproduce:
git://github.com/flare-lang/flare.git
andgit://github.com/flare-lang/flare-performance.git
next to each other.flare
repository.flare/.editorconfig
resulting in thousands of error diagnostics.Unfortunately, I haven't been able to narrow down an exact action (or sequence of actions) that reproduces this reliably, but opening files at random seems to eventually trigger the issue. It's worth noting that the issue does not occur if I open the
flare
repository by itself (i.e. without using a multi-root workspace).Restarting OmniSharp usually resolves the issue for some time, though it eventually pops up again, usually within 5-10 minutes. Given the time it takes to fully analyze the solution (during which IDE functionality is very limited), this isn't a great workaround.
(Note: I am aware that OmniSharp doesn't have good support for multi-root workspaces at the moment (judging by other issues tracking progress in this area) but since the
flare-performance
repository contains no C#/.NET code whatsoever, I would expect there not to be issues in this particular scenario.)Versions used:
The text was updated successfully, but these errors were encountered: