This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
0 Replies Last post: Jun 30, 2011 5:50 PM by Johnny Ralph Lars  
Johnny Ralph Lars Newbie 4 posts since
Aug 26, 2010
Currently Being Moderated

Jun 30, 2011 5:50 PM

ReSharper breaks pseudoexecuting JS intellisense

Hello.

I've just installed a trial of ReSharper 6 in VS2010. I love that VS can provide really accurate intellisense in JS because it pseudo-executes the code (description: http://weblogs.asp.net/scottgu/archive/2010/04/08/javascript-intellisense-improvements-with-vs-2010.aspx).

However, Resharper seems to break this nice feature and shows a lot of wrong suggestions in the auto completion popup. Let us look at an example.

var x = 2;

x.

 

When typing the dot following the x, VS (with ReSharper) will show the following suggestions (cut down):

- toExponential()

- toFixed()

- toPrecision()

- ...

 

This is like it should be when the type is Number. However, the following code does not work like expected with ReSharper:

var x = "hello";

x = 2;

x.

Clearly VS should show the same suggestions as for the above code - and it does without ReSharper - but with ReSharper it shows the following (again cut down):

- charAt()

- concat()

- indexOf()

- ...

As you can see, this is the auto completion for String, not Number.

 

Is this behavior on purpose or is it a bug? If it is on purpose how do I turn it off?

More Like This

  • Retrieving data ...