REGRESSION INFO: This issue works well for Jan release C#2.120.3
INSTALL STEPS
- OS: win x64
- Install 10.0.102
- Install VS Code insiders - 1.110.0
- Install Feb prerelease 1 C#2.121.32
REPRO STEPS
- Use below code to create razor project
dotnet new razor -o razor1
- Use vs code to open this project
- Open _Layout.cshtml file, make some lines un-aligned, right click the edit, select "Format Document"
Note: This issue also repro for format selection
ACTUAL Error "Request textDocument/formatting failed. Message: The changes must not overlap. (Parameter 'changes') Code: -32000 [object Object]" display

2026-02-06 17:07:51.515 [info] Locating .NET runtime version 10.0.0
2026-02-06 17:07:51.612 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-02-06 17:07:51.612 [info] Activating C# standalone...
2026-02-06 17:07:52.072 [info] [stdout] info: Program[0]
Server started with process ID 2672
2026-02-06 17:07:53.588 [info] [stdout] {"pipeName":"\\.\pipe\0f5ce764"}
2026-02-06 17:07:53.588 [info] received named pipe information from server
2026-02-06 17:07:53.589 [info] client has connected to server
2026-02-06 17:07:53.685 [info] [Program] Language server initialized
2026-02-06 17:07:57.117 [info] [project/open] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\v-yuwzh.vscode-insiders\extensions\ms-dotnettools.csharp-2.121.32-win32-x64.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-02-06 17:07:59.010 [info] [project/open] [LanguageServerProjectLoader] Successfully completed load of c:\Users\v-yuwzh\razor23\razor23.csproj
2026-02-06 17:07:59.011 [info] [project/open] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:01.9992716
2026-02-06 17:07:59.630 [info] [workspace/didChangeWatchedFiles] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\v-yuwzh.vscode-insiders\extensions\ms-dotnettools.csharp-2.121.32-win32-x64.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-02-06 17:08:00.850 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\v-yuwzh\razor23\razor23.csproj
2026-02-06 17:08:00.850 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:01.4710583
2026-02-06 17:08:11.196 [error] Request textDocument/formatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
2026-02-06 17:09:41.133 [error] Request textDocument/rangeFormatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
2026-02-06 17:17:15.937 [error] Request textDocument/formatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
EXPECTED No error pop up
REGRESSION INFO: This issue works well for Jan release C#2.120.3
INSTALL STEPS
REPRO STEPS
dotnet new razor -o razor1Note: This issue also repro for format selection
ACTUAL Error "Request textDocument/formatting failed. Message: The changes must not overlap. (Parameter 'changes') Code: -32000 [object Object]" display
2026-02-06 17:07:53.588 [info] [stdout] {"pipeName":"\\.\pipe\0f5ce764"}
2026-02-06 17:07:53.588 [info] received named pipe information from server
2026-02-06 17:07:53.589 [info] client has connected to server
2026-02-06 17:07:53.685 [info] [Program] Language server initialized
2026-02-06 17:07:57.117 [info] [project/open] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\v-yuwzh.vscode-insiders\extensions\ms-dotnettools.csharp-2.121.32-win32-x64.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-02-06 17:07:59.010 [info] [project/open] [LanguageServerProjectLoader] Successfully completed load of c:\Users\v-yuwzh\razor23\razor23.csproj
2026-02-06 17:07:59.011 [info] [project/open] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:01.9992716
2026-02-06 17:07:59.630 [info] [workspace/didChangeWatchedFiles] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\v-yuwzh.vscode-insiders\extensions\ms-dotnettools.csharp-2.121.32-win32-x64.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-02-06 17:08:00.850 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\v-yuwzh\razor23\razor23.csproj
2026-02-06 17:08:00.850 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:01.4710583
2026-02-06 17:08:11.196 [error] Request textDocument/formatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
2026-02-06 17:09:41.133 [error] Request textDocument/rangeFormatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
2026-02-06 17:17:15.937 [error] Request textDocument/formatting failed.
Message: The changes must not overlap. (Parameter 'changes')
Code: -32000
[object Object]
EXPECTED No error pop up