I had the same problem and I found a solution that works for me.
- Open VS 2010
- Select Tools / Options ... in the menu
- Open the text editor / file extension properties page.
- Add an entry for the "js" file extension and set the "Script Editor" to edit
I still don't know why this does not work out of the box, but at least it fixes the problem.
source share