Friday, 17 August 2007

Javascript Intellisense Bug in Orcas Beta 2

I've been preparing for the nugget i am doing in Birmingham next month at NxtGenUg (I will follow up details on a later post).

I've been working on the ins and outs of intellisense for Javascript.

For some reason whenever i split code between files, intellisense doesn't seem to like it so much.

So for example if i have a person object function, and a test function in the same class, intellisense will work, and i can see the FirstName and Surname properties.

<script type="text/javascript">
function Person(firstName, surname)
/// <summary>This is a person class</summary>
/// <param name="firstName" value="string">The first name of the person e.g. Johnny</param>
this.FirstName = firstName;
this.Surname = surname;

function Test()
var newPerson = new Person("fred", "jones");

If however i move the Person class from my aspx file into a seperate .js textfile, intellisense breaks.

<script type="text/javascript" src="Person.js"></script>


Anonymous said...

Any chance you could .zip up and send me a simple repro of this scenario via email (

I can then have someone take a look at it.

chrishayuk said...

Sample of the problems can be found at: