cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.09k stars 77 forks source link

Support ASP.NET Razor #2183

Open Mark-Phillipson opened 5 months ago

Mark-Phillipson commented 5 months ago

File Types: .cshtml .razor

Visual Studio Code Filetype: ASP.NET Razor (aspnetcorerazor)

Could these be regarded as HTML ?

pokey commented 5 months ago

As suggested in description, the easy one-line hack to try is to just tell https://github.com/cursorless-dev/vscode-parse-tree/ to treat the aspnetcorerazor language id as if it were html. The one risk here is that the html parser can be a bit temperamental. For example, we've seen weird behaviour (as in hanging / crashing) back when we tried to use it for xml files if there were a tag whose name was more than 10 chars