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

../../ don't work on require path #62

Open
ghost opened this issue Aug 20, 2015 · 0 comments
Open

../../ don't work on require path #62

ghost opened this issue Aug 20, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2015

Hello,
when I get a module (mod1) which is 2 level above via requirejs, the autocompletion doesn't work in my mod2. But if I get mod2 in a third module, the autocompletion fit perfect.

This is a workspace for
my example :
folder1
-> folder2
-> -> mod1.js
-> mod2.js
mod.js

  • mod.js
define(function() {
  return { name: 'mod' };
})
  • mod1.js
define(['../../mod', function(mod) {
  //  here autocompletion doesn't work for "mod." - don't see mod.name
  return {
     name: 'mod1',
     mod: mod
  };
})
  • mod2.js
define(['folder2/mod1', function(mod1) {
  //  here autocompletion work for "mod." - see mod1.mod.name
  return {
     name: 'mod1',
     mod: mod
  };
})

Have you a solution ?

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

0 participants