-
Notifications
You must be signed in to change notification settings - Fork 686
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
C# code formatting ignoring EditorConfig settings #1726
Comments
EditorConfig support has not been added for C# for VS Code. I'll use this project to track adding this feature in the future. |
I bet we'll get a lot of this for free once Roslyn finishes implementing editorconfig support for the compiler (cc @jasonmalinowski @jinujoseph) |
I bet we won't 😄 |
I'm curious, why not? |
I'm just betting on it not working based on looking at editorconfig in the past and finding that everything was completely internal. How would it get into the OmniSharpWorkspace? Just because it would be passed into the compiler doesn't mean it would make it's way into our workspace options automatically. |
Well, it should Just Work because if it doesn't, you can yell at us to finish the job. 😉 Given we have to support in the same API the command line compiler, the VS inproc and out of proc workspaces...we have to design it flexibly. |
@jasonmalinowski : Could you loop me in to that design work? I'd like to make sure it meets our needs. |
@DustinCampbell Sure! |
Loop in @rchande too. |
Are there any plans for that? |
Is there a workaround for this atm, other than disabling the plugin? |
When will this issue be fixed please? |
This would be great to have. |
The work on the Roslyn side to integrate |
@DustinCampbell Am I right, based on this comment, that you're tracking EditorConfig support here? If so, is there any chance that you'll be working toward the extended list of .NET coding conventions that Visual Studio supports? |
Is there any upstream issue from roslyn to add support for editorconfig that's trackable anywhere? |
Hi everyone, doesn't Roslyn already support pulling configuration from .editorconfig via https://github.com/dotnet/roslyn/blob/master/src/Workspaces/Core/Portable/Options/EditorConfig/EditorConfigDocumentOptionsProviderFactory.cs in Workspaces? See also:
|
@kpko Yes, that's the proper support we're building. We're starting to test that internally and work through a few other design issues before we call that good. |
Nice that this is merged in the |
@guidobouman this is like the last challenge of using GitHub issues... I don't care when it's closed, I care when it's released! |
From @michaldudak on August 18, 2017 11:47
Format selection / Format document commands seem to ignore the current EditorConfig settings when applied to a C# file.
I'm not sure if this repo is the right place for to log the issue. Please correct me if it should be elsewhere.
(2 theme extensions excluded)
Steps to Reproduce:
.editorconfig
file in a directory:One thing to note -
"omnisharp.useEditorFormattingSettings"
is set totrue
in my configuration.Reproduces without extensions: No
Copied from original issue: microsoft/vscode#32776
The text was updated successfully, but these errors were encountered: