JavaScript Reference group Dedicated Worker

JavaScript Reference group Dedicated Worker

Rate This
  • Comments 0

Travis Leithead showed a video "Building responsive apps and sites with HTML5 web workers" in BUILD. When editing "Dedicated worker" JavaScript file in Visual Studio 11 Developer's Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor:

/// <reference group="Dedicated Worker" />

"Dedicated Worker" is a reference Group defined in the Tools->Options->Text Editor->JavaScript->IntelliSense->References. It contains a JavaScript file which contains all the web walker JavaScript HTML5 objects.

clip_image002

You can then see IntelliSense, such as importScripts:

clip_image003

Also, IntelliSense will be shown form the JavaScript files referenced via importScripts function as well.

clip_image004

Best regards,

Xinyang Qiu

Web Platform and Tools