Javascript. ///Reference to htm/aspx ignored
default.htm:
function myFn(s){alert(s);}
test.js
/// <reference path="tst.htm" /> xx=152; myFn( dv.innerHTML );
Resharper intellisense & code analyzer doesn't parse tst.htm. It highlight 'xx', 'myFn' & 'dv' as 'implicitly declared global variables'.
But if I add "/// <reference path="out.js" />" to test.js, 'myFn' is visible. So...problem only with html/aspx files.
Is it bug, or Resharper really doesn't analyze html files?
Please sign in to leave a comment.
Hi,
Have you tried R# 6.1 release build? I can't reproduce such behavoir on 6.1. Could you please create a simple WebSite for us ?
Thanks in advance.
Kirill Falk
.NET Team QA Lead
Yes, I downloaded R# just week ago. It's 6.1 release.
----
JetBrains ReSharper 6.1 Full Edition
Build 6.1.37.86 on 2011-12-20T19:15:24
Free evaluation 24 days left
Plugins: none
Visual Studio 10.0.40219.1.
Copyright © 2003–2011 JetBrains s.r.o. All rights reserved.
---
example pages in ZIP
From "screnshot2.png" you can see, that reference to *.js work good, but not to *.html.
P.S.: native VS intellisense work without any problems in this situation.
Attachment(s):
test.zip
Dmitriy, thanks for report.
Issue is created http://youtrack.jetbrains.net/issue/RSRP-287683