Skip to content

Issues with Razor editor breaking #11886

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

Open
davidfowl opened this issue May 23, 2025 · 1 comment
Open

Issues with Razor editor breaking #11886

davidfowl opened this issue May 23, 2025 · 1 comment
Labels
bug Something isn't working untriaged vscode

Comments

@davidfowl
Copy link
Member

Is this a Bug or Feature request?:

Bug

Steps to reproduce:

------------------- Please fill in this section -------------------------

Description of the problem:

------------------- Please fill in this section -------------------------

Expected behavior:

Actual behavior:

Logs

OmniSharp

------------------- Please fill in this section -------------------------
To find the OmniSharp log, open VS Code's "Output" pane, then in the dropdown choose "OmniSharp Log".

Razor

Expand

-- Starting Issue Data Collection-- 
1720 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1720 - Projected document in sync with host document
1720 - Projected text document in sync with data type
1720 - Synchronization successful!
1721 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1721 - Projected document in sync with host document
1721 - Projected text document in sync with data type
1721 - Synchronization successful!
1722 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1722 - Projected document in sync with host document
1722 - Projected text document in sync with data type
1722 - Synchronization successful!
1723 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1723 - Projected document in sync with host document
1723 - Projected text document in sync with data type
1723 - Synchronization successful!
1724 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1724 - Projected document in sync with host document
1724 - Projected text document in sync with data type
1724 - Synchronization successful!
1725 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1725 - Projected document in sync with host document
1725 - Projected text document in sync with data type
1725 - Synchronization successful!
1726 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1726 - Projected document in sync with host document
1726 - Projected text document in sync with data type
1726 - Synchronization successful!
1727 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1727 - Projected document in sync with host document
1727 - Projected text document in sync with data type
1727 - Synchronization successful!
1728 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1728 - Projected document in sync with host document
1728 - Projected text document in sync with data type
1728 - Synchronization successful!
1729 - Synchronizing 'c:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor__virtual.cs':
    Currently at 88, synchronizing to version '88'.'
1729 - Projected document in sync with host document
1729 - Projected text document in sync with data type
1729 - Synchronization successful!
-- Stopping Issue Data Collection-- 

Workspace information

Razor document:

Expand

@using static System.Web.HttpUtility

@code {
    [Parameter]
    public string Path { get; set; } = string.Empty;
}

<link rel="stylesheet" href="/style.css" />

@{
    var safePath = HtmlEncode(Path);
    var backHref = "/";
    var imgSrc = $"/images/{UrlPathEncode(Path)}";
}

<html>
<head>
    <script>
        async function fetchDescription() {
            const descBox = document.getElementById('descbox');
            descBox.textContent = 'Loading...';
            const imageName = encodeURIComponent('@Path');
            try {
                const resp = await fetch(`/describe/${imageName}`);
                if (!resp.ok) throw new Error('No description');
                const desc = await resp.text();
                descBox.textContent = desc;
            } catch {
                descBox.textContent = 'No description available.';
            }
        }
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('descgenbtn').addEventListener('click', fetchDescription);
            fetchDescription(); // Fetch on load
        });
    </script>
</head>
<body>
    <h1>Preview: @safePath</h1>
    <img src="@imgSrc" style="display:block;margin:2em auto;max-width:600px;max-height:400px;" />
    <button id="descgenbtn" style="display:block;margin:1em auto;">Generate Description</button>
    <div id="descbox" style="position:fixed;bottom:20px;left:20px;right:20px;background:#fffbe8;border:1px solid #ccc;padding:1em;z-index:1000;box-shadow:0 2px 8px #0002;font-size:1.1em;"></div>
    <br />
    <a href="@backHref">Back</a>
</body>
</html>

Projected CSharp document:

Expand

////////////////////// Projected CSharp as seen by extension ///////////////////////
#pragma checksum "C:/dev/git/dogfood/apps/ImageFun/ImageUpload/Components/ImagePreview.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "effb370c75b95b290c744e84dd6f5da1902dcc80"
// <auto-generated/>
#pragma warning disable 1591
namespace ImageUpload.Components
{
    #line default
    using global::System;
    using global::System.Collections.Generic;
    using global::System.Linq;
    using global::System.Threading.Tasks;
    using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,37) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
using static System.Web.HttpUtility

#nullable disable
    ;
#nullable restore
#line (2,2)-(2,37) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
using static System.Web.HttpUtility

#nullable disable
    ;
    #line default
    #line hidden
    #nullable restore
    public partial class ImagePreview : global::Microsoft.AspNetCore.Components.ComponentBase
    #nullable disable
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "\r\n\r\n]\r\n    public string Path { get; set; } = string.Empty;\r\n}\r\n\r\n<link rel=\"stylesheet\" href=\"/style.css\">");
#nullable restore
#line (11,3)-(15,1) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"

    var safePath = System.NUrlPathEncode.HtmlEncode(Path);
    var backHref = "/";
    var imgSrc = $"/images/{HttpUtility.UrlEncode(Path)}";

#line default
#line hidden
#nullable disable

            __builder.OpenElement(1, "html");
            __builder.OpenElement(2, "head");
            __builder.OpenElement(3, "script");
            __builder.AddMarkupContent(4, "\r\n        async function fetchDescription() {\r\n            const imageName = encodeURIComponent(\'");
#nullable restore
#line (21,52)-(21,56) 24 "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
__builder.AddContent(5, Path

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(6, @"');
            try {
                const resp = await fetch(`/describe/${imageName}`);
                if (!resp.ok) throw new Error('No description');
                const desc = await resp.text();
                document.getElementById('descbox').textContent = desc;
            } catch {
                document.getElementById('descbox').textContent = 'No description available.';
            }
        }
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('descgenbtn').addEventListener('click', fetchDescription);
            fetchDescription(); // Fetch on load
        });
    ");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(7, "\r\n");
            __builder.OpenElement(8, "body");
            __builder.OpenElement(9, "h1");
            __builder.AddContent(10, "Preview: ");
#nullable restore
#line (38,19)-(38,27) 25 "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
__builder.AddContent(11, safePath

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(12, "\r\n    ");
            __builder.OpenElement(13, "img");
            __builder.AddAttribute(14, "src", 
#nullable restore
#line (39,16)-(39,22) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
imgSrc

#line default
#line hidden
#nullable disable
            );
            __builder.AddAttribute(15, "style", "display:block;margin:2em auto;max-width:600px;max-height:400px;");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.AddMarkupContent(17, @"<button id=""descgenbtn"" style=""display:block;margin:1em auto;"">Generate Description</button>
    <div id=""descbox"" style=""position:fixed;bottom:20px;left:20px;right:20px;background:#fffbe8;border:1px solid #ccc;padding:1em;z-index:1000;box-shadow:0 2px 8px #0002;font-size:1.1em;""></div>
    <br>
    ");
            __builder.OpenElement(18, "a");
            __builder.AddAttribute(19, "href", 
#nullable restore
#line (43,15)-(43,23) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
backHref

#line default
#line hidden
#nullable disable
            );
            __builder.AddContent(20, "Back");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.CloseElement();
        }
        #pragma warning restore 1998
    }
}
#pragma warning restore 1591



////////////////////// Projected CSharp as seen by extension ///////////////////////
#pragma checksum "C:/dev/git/dogfood/apps/ImageFun/ImageUpload/Components/ImagePreview.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "effb370c75b95b290c744e84dd6f5da1902dcc80"
// <auto-generated/>
#pragma warning disable 1591
namespace ImageUpload.Components
{
    #line default
    using global::System;
    using global::System.Collections.Generic;
    using global::System.Linq;
    using global::System.Threading.Tasks;
    using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,37) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
using static System.Web.HttpUtility

#nullable disable
    ;
#nullable restore
#line (2,2)-(2,37) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
using static System.Web.HttpUtility

#nullable disable
    ;
    #line default
    #line hidden
    #nullable restore
    public partial class ImagePreview : global::Microsoft.AspNetCore.Components.ComponentBase
    #nullable disable
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "\r\n\r\n]\r\n    public string Path { get; set; } = string.Empty;\r\n}\r\n\r\n<link rel=\"stylesheet\" href=\"/style.css\">");
#nullable restore
#line (11,3)-(15,1) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"

    var safePath = System.NUrlPathEncode.HtmlEncode(Path);
    var backHref = "/";
    var imgSrc = $"/images/{HttpUtility.UrlEncode(Path)}";

#line default
#line hidden
#nullable disable

            __builder.OpenElement(1, "html");
            __builder.OpenElement(2, "head");
            __builder.OpenElement(3, "script");
            __builder.AddMarkupContent(4, "\r\n        async function fetchDescription() {\r\n            const imageName = encodeURIComponent(\'");
#nullable restore
#line (21,52)-(21,56) 24 "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
__builder.AddContent(5, Path

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(6, @"');
            try {
                const resp = await fetch(`/describe/${imageName}`);
                if (!resp.ok) throw new Error('No description');
                const desc = await resp.text();
                document.getElementById('descbox').textContent = desc;
            } catch {
                document.getElementById('descbox').textContent = 'No description available.';
            }
        }
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('descgenbtn').addEventListener('click', fetchDescription);
            fetchDescription(); // Fetch on load
        });
    ");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(7, "\r\n");
            __builder.OpenElement(8, "body");
            __builder.OpenElement(9, "h1");
            __builder.AddContent(10, "Preview: ");
#nullable restore
#line (38,19)-(38,27) 25 "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
__builder.AddContent(11, safePath

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(12, "\r\n    ");
            __builder.OpenElement(13, "img");
            __builder.AddAttribute(14, "src", 
#nullable restore
#line (39,16)-(39,22) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
imgSrc

#line default
#line hidden
#nullable disable
            );
            __builder.AddAttribute(15, "style", "display:block;margin:2em auto;max-width:600px;max-height:400px;");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.AddMarkupContent(17, @"<button id=""descgenbtn"" style=""display:block;margin:1em auto;"">Generate Description</button>
    <div id=""descbox"" style=""position:fixed;bottom:20px;left:20px;right:20px;background:#fffbe8;border:1px solid #ccc;padding:1em;z-index:1000;box-shadow:0 2px 8px #0002;font-size:1.1em;""></div>
    <br>
    ");
            __builder.OpenElement(18, "a");
            __builder.AddAttribute(19, "href", 
#nullable restore
#line (43,15)-(43,23) "C:\dev\git\dogfood\apps\ImageFun\ImageUpload\Components\ImagePreview.razor"
backHref

#line default
#line hidden
#nullable disable
            );
            __builder.AddContent(20, "Back");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.CloseElement();
        }
        #pragma warning restore 1998
    }
}
#pragma warning restore 1591

// 88

Projected Html document:

Expand

////////////////////// Projected Html as seen by extension ///////////////////////
/*~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~*/
/*~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~*/


]
    public string Path { get; set; } = string.Empty;
}

<link rel="stylesheet" href="/style.css" />

~~
    ~~~ /*~~~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    ~~~ /*~~~~*/ ~ /**/
    ~~~ /*~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~

<html>
<head>
    <script>
        async function fetchDescription() {
            const imageName = encodeURIComponent('/*~*/');
            try {
                const resp = await fetch(`/describe/${imageName}`);
                if (!resp.ok) throw new Error('No description');
                const desc = await resp.text();
                document.getElementById('descbox').textContent = desc;
            } catch {
                document.getElementById('descbox').textContent = 'No description available.';
            }
        }
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('descgenbtn').addEventListener('click', fetchDescription);
            fetchDescription(); // Fetch on load
        });
    </script>
</head>
<body>
    <h1>Preview: /*~~~~~*/</h1>
    <img src="/*~~~*/" style="display:block;margin:2em auto;max-width:600px;max-height:400px;" />
    <button id="descgenbtn" style="display:block;margin:1em auto;">Generate Description</button>
    <div id="descbox" style="position:fixed;bottom:20px;left:20px;right:20px;background:#fffbe8;border:1px solid #ccc;padding:1em;z-index:1000;box-shadow:0 2px 8px #0002;font-size:1.1em;"></div>
    <br />
    <a href="/*~~~~~*/">Back</a>
</body>
</html>



////////////////////// Projected Html as seen by extension ///////////////////////
/*~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~*/
/*~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~*/


]
    public string Path { get; set; } = string.Empty;
}

<link rel="stylesheet" href="/style.css" />

~~
    ~~~ /*~~~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
    ~~~ /*~~~~*/ ~ /**/
    ~~~ /*~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~

<html>
<head>
    <script>
        async function fetchDescription() {
            const imageName = encodeURIComponent('/*~*/');
            try {
                const resp = await fetch(`/describe/${imageName}`);
                if (!resp.ok) throw new Error('No description');
                const desc = await resp.text();
                document.getElementById('descbox').textContent = desc;
            } catch {
                document.getElementById('descbox').textContent = 'No description available.';
            }
        }
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('descgenbtn').addEventListener('click', fetchDescription);
            fetchDescription(); // Fetch on load
        });
    </script>
</head>
<body>
    <h1>Preview: /*~~~~~*/</h1>
    <img src="/*~~~*/" style="display:block;margin:2em auto;max-width:600px;max-height:400px;" />
    <button id="descgenbtn" style="display:block;margin:1em auto;">Generate Description</button>
    <div id="descbox" style="position:fixed;bottom:20px;left:20px;right:20px;background:#fffbe8;border:1px solid #ccc;padding:1em;z-index:1000;box-shadow:0 2px 8px #0002;font-size:1.1em;"></div>
    <br />
    <a href="/*~~~~~*/">Back</a>
</body>
</html>

// 88

Machine information

VSCode version: 1.100.2
Razor.VSCode version: 2.79.8

dotnet --info

Expand

.NET SDK:
 Version:           10.0.100-preview.3.25201.16
 Commit:            9dee3cf508
 Workload version:  10.0.100-manifests.ef4f854f
 MSBuild version:   17.14.0-preview-25177-05+903614e16

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26100
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\10.0.100-preview.3.25201.16\

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.

Host:
  Version:      10.0.0-preview.3.25171.5
  Architecture: x64
  Commit:       0a33e18a0b

.NET SDKs installed:
  6.0.428 [C:\Program Files\dotnet\sdk]
  8.0.206 [C:\Program Files\dotnet\sdk]
  8.0.410 [C:\Program Files\dotnet\sdk]
  9.0.106 [C:\Program Files\dotnet\sdk]
  9.0.204 [C:\Program Files\dotnet\sdk]
  9.0.300-preview.0.25177.5 [C:\Program Files\dotnet\sdk]
  10.0.100-preview.3.25201.16 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 10.0.0-preview.3.25172.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 10.0.0-preview.3.25171.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 10.0.0-preview.3.25174.1 [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/download

Extensions

Expand

Extension Author Version
caddyfile-support matthewpi 0.4.0
cmake twxs 0.0.17
codespaces GitHub 1.17.3
copilot GitHub 1.323.0
copilot-chat GitHub 0.27.2
cpptools-extension-pack ms-vscode 1.3.1
cpptools-themes ms-vscode 2.0.0
csdevkit ms-dotnettools 1.19.63
csharp ms-dotnettools 2.79.8
debugpy ms-python 2025.8.0
docker docker 0.7.0
powershell ms-vscode 2025.0.0
python ms-python 2025.6.1
rainbow-csv mechatroner 3.19.0
remote-containers ms-vscode-remote 0.413.0
rest-client humao 0.25.1
terraform hashicorp 2.34.4
vscode-azureresourcegroups ms-azuretools 0.10.11
vscode-bicep ms-azuretools 0.35.1
vscode-docker ms-azuretools 1.29.6
vscode-dotnet-runtime ms-dotnettools 2.3.3
vscode-github-actions github 0.27.1
vscode-pylance ms-python 2025.5.1
vscode-yaml redhat 1.18.0

@davidfowl davidfowl added bug Something isn't working vscode labels May 23, 2025
@dibarbet
Copy link
Member

dibarbet commented May 23, 2025

Some additional info that might be helpful - I hit this once while looking into a different issue. The generated Razor doc appears to be getting out of sync with what I'm typing occasionally.

Image

razor:

@if (dataItems != null && dataItems.Count > 0)

generated c#:

if (dataItems != null && dataItems.Count > 00 > tnuoC.Itemsata)

Previously, I had something else after the &&, and was replacing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged vscode
Projects
None yet
Development

No branches or pull requests

2 participants