{"id":4564,"date":"2008-03-12T12:00:00","date_gmt":"2008-03-12T12:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2008\/03\/12\/jscript-intellisense-working-with-ext-js\/"},"modified":"2008-03-12T12:00:00","modified_gmt":"2008-03-12T12:00:00","slug":"jscript-intellisense-working-with-ext-js","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/jscript-intellisense-working-with-ext-js\/","title":{"rendered":"JScript IntelliSense: Working with Ext JS"},"content":{"rendered":"<p><P><A href=\"http:\/\/extjs.com\/\">Ext<\/A> is great framework for adding rich AJAX interactivity to your web application.&nbsp; Unfortunately, JScript IntelliSense currently has difficulties processing the script and it&#8217;s not uncommon to see this message: <\/P>\n<P><IMG title=\"Ext\" border=\"0\" alt=\"Ext\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Ext_thumb_1.png\" width=\"502\" height=\"115\"> <\/P>\n<P>I just wanted to let everyone know that we&#8217;ve investigated and fixed the issue.&nbsp; This fix will be available in the next service pack (no date announced yet).&nbsp; In the meanwhile, there&#8217;s actually a simple workaround.&nbsp; In a file that runs before ext-base.js, or on the first-line of ext-base.js itself, add the following code: <\/P>\n<DIV><PRE>window.addEventListener = false;<\/PRE><\/DIV>\n<P>This corrects for an inaccuracy in our simulated execution environment.&nbsp; Once again, after the next service pack, this workaround will no longer be neccesary.&nbsp; I quickly experimented with Ext 2.0.2&#8230; <\/P>\n<P><IMG title=\"ext20\" border=\"1\" alt=\"ext20\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/ext20_thumb_2.png\" width=\"432\" height=\"294\"> <\/P>\n<P>&#8230;and Ext 1.1.1&#8230; <\/P>\n<P><A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/ext11_6.png\"><IMG title=\"ext11\" border=\"1\" alt=\"ext11\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/ext11_thumb_2.png\" width=\"390\" height=\"194\"><\/A> <\/P>\n<P>Ext is one of the larger libraries out there and thus it takes longer to execute.&nbsp; If you&#8217;ve been seeing&#8230;<\/P>\n<P><IMG title=\"Timeout\" border=\"0\" alt=\"Timeout\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/error-timeout.png\" width=\"679\" height=\"139\"><\/P>\n<P>&#8230;increasing the timeout will often solve the problem. <\/P>\n<DIV>\n<P><STRONG>Increasing the Timeout<\/STRONG> <\/P>\n<P>By default, every IntelliSense request is only allowed 15s to execute.&nbsp; This is to prevent IntelliSense from scripts with infinite loops.&nbsp; If you have a large script or slower machine, it may make sense to increase the timeout limit.&nbsp; The timeout value store within following registry keys (depending on if your are using Express or the full product).&nbsp; The value is in milliseconds so choose something greater than 15000.<\/P><PRE>HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\HTML Editor\\JsFailsafeTimeout <BR>HKEY_CURRENT_USER\\Software\\Microsoft\\VWDExpress\\9.0\\HTML Editor\\JsFailsafeTimeout<\/PRE><\/DIV>\n<P>On a related note, we&#8217;ve read all the requests for <A href=\"http:\/\/www.prototypejs.org\/\">Prototype<\/A> support.&nbsp; Like Ext, We&#8217;ve fixed the issue for the next service pack. But unlike Ext, there isn&#8217;t a temporary workaround to be offered.&nbsp; We hope this info unblocks your work.&nbsp; Thanks for using our editor!<\/P>\n<P><STRONG>Jeff King<\/STRONG> <BR>Program Manager <BR>Visual Studio Web Tools<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ext is great framework for adding rich AJAX interactivity to your web application.&nbsp; Unfortunately, JScript IntelliSense currently has difficulties processing the script and it&#8217;s not uncommon to see this message: I just wanted to let everyone know that we&#8217;ve investigated and fixed the issue.&nbsp; This fix will be available in the next service pack (no [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[4,7279,31,7276,7277,7274,147,7267,7268,7269],"class_list":["post-4564","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net","tag-ajax","tag-asp-net","tag-intellisense","tag-jeff-king","tag-jscript","tag-visual-studio","tag-vwd","tag-web","tag-web-2-0"],"acf":[],"blog_post_summary":"<p>Ext is great framework for adding rich AJAX interactivity to your web application.&nbsp; Unfortunately, JScript IntelliSense currently has difficulties processing the script and it&#8217;s not uncommon to see this message: I just wanted to let everyone know that we&#8217;ve investigated and fixed the issue.&nbsp; This fix will be available in the next service pack (no [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=4564"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4564\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=4564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=4564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=4564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}