-
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
Watch .editorconfig for changes #1904
Comments
could you please provide some more details? e.g. a sample csproj you have, which setting you are trying to change, and which exact steps you did follow? We run a file watcher over editorconfig so it should definitely work - omnisharp-roslyn/src/OmniSharp.MSBuild/ProjectManager.cs Lines 389 to 392 in 1d552c5
|
@filipw I will provide a project sample in a followup comment. Regarding the code snippet you provided, does it watch nested I saw that it does handle parent .editorconfig files but I don't know if that is the same thing. In the below tree, the parent .editorconfig to MyProject1 would be the .editorconfig for MySolution.sln
|
I was mistaken. It looks like the modified Note: Closing and reopening the file does not cause the file to be re-analyzed. To me it feels like modifying the
When updating the
When manually running
When manually running
Test notesAttached is the sample project I used to gather the above logs. I modified the OmniSharpTests.Terminal project's .editorconfig file to showcase what I am talking about. |
Issue Description
When a user edits their
.editorconfig
file Omnisharp does not reload the.editorconfig
configuration. In order for the new configuration to be used, Omnisharp must be restarted.Note: It is not enough to force Omnisharp to re-analyze all projects, Omnisharp must be restarted for the changes to take effect.
Steps to Reproduce
.editorconfig
Expected Behavior
Omnisharp re-analyzes using the updated configuration.
Actual Behavior
Omnisharp does nothing until the user restarts Omnisharp.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.47.2
C# Extension: 1.22.1
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.302 Commit: 41faccf259Runtime Environment:
OS Name: Windows
OS Version: 10.0.19041
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.302\
Host (useful for support):
Version: 3.1.6
Commit: 3acd9b0cd1
.NET Core SDKs installed:
3.1.302 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: