Comments (6)
Does this work in the HTML editor (non-Razor)?
from razor.
Oh man, how this one bugs me. VSCode suffers from similar behavior.
The HtmlEditorDocument
delegates to the Microsoft.Web.CSS
libraries for <style>
tags' contents via a CSS BlockHandler
, and those libraries' parser does not have any concept of embedded languages or artifacts. That being said, funny enough, the JS BlockHandler
specifically excludes text ranges identified by Razor from being included in the text snapshot that the JS library gets to work with. It looks like there may be some extensibility point with ParserItemFactory
or something like that, but by the time I found that I was too deep down the rabbit hole and decided to bail out.
from razor.
@NTaylorMullen if you are convinced this is a bug on the non-OSS side, please find the internal bug and link it 😆
from razor.
Tracked here: https://devdiv.visualstudio.com/DevDiv/_workitems?id=238366&_a=edit
from razor.
I've posted this as an issue in Visual Studio Community and here (the old here) at least twice over the last two years. I can't find the posts. There was a little investigation done at some point I think. Someone on the team said they had a similar problem with script (IIRC) tags, and thought the same approach might work. But that was the last comment. It's my dotnet/aspnetcore#1 issue with Razor. I even put it as a reason I thought the new VS wasn't ready to go live in one of those pop-up questionnaires only a couple of months ago. Not only does intellisense quit working for autocomplete, all of the code goes white.
from razor.
Hi. Thanks for contacting us.
We're closing this issue as there was not much community interest in this ask for quite a while now.
from razor.
Related Issues (20)
- [Automated] PRs inserted in VS build main-35012.15
- [Automated] PRs inserted in VS build main-35013.40
- [Automated] PRs inserted in VS build main-35014.10
- [Automated] PRs inserted in VS build feature.debugger.main-35014.68
- EventHandlerAttribute: enableStopPropagation and enablePreventDefault are swapped HOT 1
- How to use BuildRenderTree() as a RenderFragment? HOT 10
- Razor File Editor: Basic File/Class Context Missing
- [Automated] PRs inserted in VS build main-35018.08
- Many Errors in Dev console HOT 17
- [Automated] PRs inserted in VS build main-35019.24
- Razor server fails to launch with only .Net9.0 Preivew 6 installed HOT 1
- The name 'context' does not exist in the current context HOT 6
- [Automated] PRs inserted in VS build feature.debugger.main-35020.110
- [Automated] PRs inserted in VS build main-35020.03
- Found markup element with unexpected name 'Routes' HOT 1
- Blazor webassembly does not hit breakpoints on <select> bindings
- Move to newer LSP APIs (System.Text.Json)
- [Automated] PRs inserted in VS build main-35025.123
- Request textDocument/semanticTokens/range failed. HOT 2
- Implement propper commenting in blazor, please HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from razor.