visual studio 2015 - VS2015: Prevent download of dynamically generated JavaScript reference by "JavaScript Language Service" -


please see below image.. note timestamps -- computer not activity. problem seems happen whenever have *.js or *.cshtml file open.

i have turned off "download remote references (e.g. http://) files in miscellaneous files project" in javascript -> intellisense -> general, problem continues.

i tried moving inclusion of "doorbell.io.js" bundle rather _layout.cshtml file, didn't work.

how can prevent vs downloading javascript reference?

enter image description here

to fix immediate issue

remove offending line "_references.js". save. problem should stop immediately.

/// <reference path="doorbell.io.js" />

future considerations...

note default references set auto-sync. means if ever refresh sources, such nuget or adding javascript file manually, offending file added in. can disable functionality right-clicking inside file , unselecting auto-sync javascript references

enter image description here

if decide disable feature, can still manually update them update javascript references menu item.

note @ point in time there no easy way prevent specific file re-appearing on list. need remove manually every time visual studio generates list on behalf.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -