Open mdsitton opened 1 year ago
I'm having the same issue. Looking at other issues, #5485 seems to be related if not duplicate.
I've also tested with just a standard fresh .net project that isn't unity and i'm seeing the same behavior. But i do see looking at my editorconfig, it did have an error.
I should have been using root = true not is_global = true. No idea where this came from but changing that resolves the issue for me.
There should be better errors when this occurs!
I have root = true
and still have the issue. Whenever I create a new file it defaults to spaces not tabs.
Issue Description
So i got a new laptop yesterday and set up vscode with the most common extensions i use for C# development. I'm using vscode for unity development for context.
this is the editorconfig file being used:
I've tried using "omnisharp.path": "latest", and blank with the same behavior
Here is my settings.json contents and i don't have anything in the workspace configured
Steps to Reproduce
use .editorconfig in root project directory, with formatting options. Extension does not pick these settings up causing format on save to use the incorrect settings.
Expected Behavior
It should pull settings from the .editorconfig
Actual Behavior
It doesn't take the settings from the .editorconfig
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.76.1 C# Extension: 1.25.4
Dotnet Information
.NET SDK: Version: 7.0.201 Commit: 68f2d7e7a3 Runtime Environment: OS Name: Windows OS Version: 10.0.22621 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.201\ Host: Version: 7.0.3 Architecture: x64 Commit: 0a2bda10e8 .NET SDKs installed: 7.0.201 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |ascii-unicode-escape|yaruson|0.1.0| |code-spell-checker|streetsidesoftware|2.19.0| |csharp|ms-dotnettools|1.25.4| |csharpextensions|kreativ-software|1.7.3| |gitlens|eamodio|13.3.2| |hexeditor|ms-vscode|1.9.11| |laetus|10F|0.0.9| |markdown-all-in-one|yzhang|3.5.0| |msbuild-project-tools|tintoy|0.4.9| |unity-debug|deitry|3.0.11| |vscode-unitymeta|PTD|0.0.7|;