Skip to content

Trigger module name autocomplete #168

@seanders

Description

@seanders

Hello,

I'm having trouble completing module paths like I see working in this demo. I'm using Sublime.

I spun up the tern server locally with the --verbose flag. I don't see a request coming in for trying to resolve the module path.

For example:
Say I have this:
src/
|..Foo.js
|..Bar.js

// Foo.js
export default () => {}
// Bar.js
import Foo from './' //Manually triggering the autocomplete after `/` isn't returning `Foo`

Heres my config:

{
  "ecmaVersion": 7,
  "plugins": {
    "webpack": {
      "configPath": "./config/webpack.config.dev.js"
    }
  },
  "loadEagerly": ["src/**/*.js"],
  "dontLoad": ["node_modules/**"]
}

Looking up module definitions and autocompletions of attributes on imported modules is working fine, however. Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions