Skip to content

Diagnostic squiggly in Razor cshtml file not in correct location #11819

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
vsfeedback opened this issue May 5, 2025 · 0 comments
Open

Diagnostic squiggly in Razor cshtml file not in correct location #11819

vsfeedback opened this issue May 5, 2025 · 0 comments
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author feature-javascript
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


When pasting in the JavaScript element for the Application Insights JS SDK into a Razor .cshtml file, an error is reported as the minimized JavaScript code in the snippet includes an @ symbol which requires escaping. However the red diagnostic squiggly underlines far more than the problem location, making it difficult to pinpoint what the issue is (especially as the minimized JS line is very wide):

image.png

Compare this to the red squiggly position when reproducing this issue on lab.razor.fyi:

image.png


Original Comments

Feedback Bot on 5/2/2025, 00:11 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@dotnet-policy-service dotnet-policy-service bot added untriaged author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author labels May 5, 2025
@phil-allen-msft phil-allen-msft added this to the Backlog milestone May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author feature-javascript
Projects
None yet
Development

No branches or pull requests

2 participants