GithubHelp home page GithubHelp logo

Comments (6)

rynowak avatar rynowak commented on August 22, 2024

Does this work in the HTML editor (non-Razor)?

from razor.

tuespetre avatar tuespetre commented on August 22, 2024

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.

rynowak avatar rynowak commented on August 22, 2024

@NTaylorMullen if you are convinced this is a bug on the non-OSS side, please find the internal bug and link it 😆

from razor.

NTaylorMullen avatar NTaylorMullen commented on August 22, 2024

Tracked here: https://devdiv.visualstudio.com/DevDiv/_workitems?id=238366&_a=edit

from razor.

RandyBuchholz avatar RandyBuchholz commented on August 22, 2024

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.

mkArtakMSFT avatar mkArtakMSFT commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.