Skip to content

Honor scoped .editorconfig settings in Roslyn formatter requests - #9402

Draft
mwiemer-microsoft with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-formatter-ignores-editorconfig
Draft

Honor scoped .editorconfig settings in Roslyn formatter requests#9402
mwiemer-microsoft with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-formatter-ignores-editorconfig

Fix scoped formatter editorconfig reads

051cce0
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet.vscode-csharp failed Jun 8, 2026 in 58m 58s

Build #2.143.50+5700f22c47 had test failures

Details

Tests

  • Failed: 27 (0.57%)
  • Passed: 4,346 (92.08%)
  • Other: 347 (7.35%)
  • Total: 4,720

Annotations

Check failure on line 2076 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

Build log #L2076

Bash exited with code '1'.

Check failure on line 1095 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

Build log #L1095

Cmd.exe exited with code '1'.

Check failure on line 1221 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

Build log #L1221

Bash exited with code '1'.

Check failure on line 1222 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

Build log #L1222

Bash exited with code '1'.

Check failure on line 1 in CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document formatting respects editorconfig

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document formatting respects editorconfig

Test failed
Raw output
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 7
+ Received  + 7

  namespace Formatting;

  class DocumentFormattingWithEditorConfig {
-   public int Property1 {
+     public int Property1 {
-     get; set;
+         get; set;
-   }
+     }

-   public void Method1() {
+     public void Method1() {
-     if (true) {
+         if (true) {
-     }
-   }
+         }
+     }
  }
    at expectText (/__w/1/s/test/lsptoolshost/integrationTests/integrationHelpers.ts:281:32)
    at Object.<anonymous> (/__w/1/s/test/lsptoolshost/integrationTests/formattingEditorConfig.integration.test.ts:54:25)

Check failure on line 1 in CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document range formatting respects editorconfig

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document range formatting respects editorconfig

Test failed
Raw output
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 9
+ Received  + 9

  namespace Formatting;
  class DocumentFormattingWithEditorConfig
  {
-   public int Property1 {
+     public int Property1 {
-     get; set;
+         get; set;
-   }
+     }

-   public void Method1()
+     public void Method1()
-   {
+     {
-     if (true)
+         if (true)
-     {
+         {
-     }
-   }
+         }
+     }
  }
    at expectText (/__w/1/s/test/lsptoolshost/integrationTests/integrationHelpers.ts:281:32)
    at Object.<anonymous> (/__w/1/s/test/lsptoolshost/integrationTests/formattingEditorConfig.integration.test.ts:76:25)

Check failure on line 1 in CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document formatting respects editorconfig

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document formatting respects editorconfig

Test failed
Raw output
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 7
+ Received  + 7

  namespace Formatting;

  class DocumentFormattingWithEditorConfig {
-   public int Property1 {
+     public int Property1 {
-     get; set;
+         get; set;
-   }
+     }

-   public void Method1() {
+     public void Method1() {
-     if (true) {
+         if (true) {
-     }
-   }
+         }
+     }
  }
    at expectText (/__w/1/s/test/lsptoolshost/integrationTests/integrationHelpers.ts:281:32)
    at Object.<anonymous> (/__w/1/s/test/lsptoolshost/integrationTests/formattingEditorConfig.integration.test.ts:54:25)

Check failure on line 1 in CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document on type formatting respects editorconfig

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.vscode-csharp

CSharp-slnWithCsproj Formatting With EditorConfig Tests / Document on type formatting respects editorconfig

Test failed
Raw output
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 9
+ Received  + 9

  namespace Formatting;
  class DocumentFormattingWithEditorConfig
  {
-   public int Property1
+     public int Property1
-   {
+     {
-     get; set;
+         get; set;
-   }
+     }

-   public void Method1()
+     public void Method1()
-   {
+     {
-     if (true) {
+         if (true) {
-     }
-   }
+         }
+     }
  }
    at expectText (/__w/1/s/test/lsptoolshost/integrationTests/integrationHelpers.ts:281:32)
    at Object.<anonymous> (/__w/1/s/test/lsptoolshost/integrationTests/formattingEditorConfig.integration.test.ts:99:25)