Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to get this to run in Visual Studio 2012 RC? #2

Open
mariusfilipowski opened this issue Aug 2, 2012 · 3 comments
Open

Any way to get this to run in Visual Studio 2012 RC? #2

mariusfilipowski opened this issue Aug 2, 2012 · 3 comments

Comments

@mariusfilipowski
Copy link

I really miss Intellisense in require-JS Modules (defines and requires). So I happily found this extension but it doesn't work in VS 2012 RC. Is there any fix planned?

Also I am working with the 2.0.x Version of Require.. Does this make any difference? I noticed the sample code seems to use the 1.0.x version...

@jrburke
Copy link
Owner

jrburke commented Aug 13, 2012

I have a VM set up to try to get this to work now, but I'm still new to debugging *.intellisense.js files, so if anyone has pointers on how to get that going, that is appreciated. While I may be able to search for more info, I'm trying to ship a few different project releases, so do not mind someone giving me some direct pointers to save me some time.

@orand
Copy link
Contributor

orand commented Aug 18, 2012

It's working for me in Visual Studio 2012 RTM. However, see my ginormous comment for details:
c214216

I should note though that it's currently only working for me inside of require(). define() doesn't work yet.

@orand
Copy link
Contributor

orand commented Aug 18, 2012

Actually, I take that back, define() is sort of working correctly in the following code:

define("foo", ["jquery"], function($) {
    $. // this works
    return { myProp: "prop" };
});

require(["jquery", "foo"], function ($, foo) {

});

However, if you comment out the require() code, the Intellisense in the define() no longer works. It appears you need to have already loaded the module with a require() before it will work in a define(), but I could be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants