Skip to content

Frequently Asked Questions

mega.boich@gmail.com edited this page May 19, 2016 · 2 revisions

How to refresh the tree?

Just save you document. Tree is automatically refreshed on save action.

How to change theme color?

Go to extension settings, navigate to UI tab.

Tree is not shown in case of html, aspx or cshtml files.

Full question:

Hi, I have a .cshtml page in which I mix Razor syntax with javascript to form uri's for ajax calls, such as:

var uri = "@Url.Action("WriteSavedSearchToCSV", "Projects", new { savedSearchID = -1 })";
uri = uri.replace("-1", ID);\

But the javascript parser complains that the first line contains an "unexpected identifier" - even if the advanced option "Process Razor syntrax to be correct script" is checked.

Or another one:

JavaScript Map Parser does not work in VS 2015 for aspx, html - files (tree is not shown). It works for js files only. I remember that previous version (JavaScript Parser) had worked perfectly in VS 2010, 2012. I have defined in settings all needed types (js html htm aspx) but it did not help.

This generally happens when parser encounters something invalid on the first line, and in this case it is probably some of html tags. Generally html tags is not a part of JavaScript so special setting "Process code only in script tags" was introduced for special file extensions. Such as html, aspx or cshtml. Please check this screenshot of settings configured to process htm, html and cshtml files.

My question is not in the list.

TBD: Sorry, more info is going. You can read more questions on [Visual Studio Gallery] (https://visualstudiogallery.msdn.microsoft.com/288a2b0f-1357-47b4-8215-1134c36bdf30/view/Discussions) discussion.