Closed socket-var closed 7 years ago
Enable the 'browser' defs in your project configuration. See here for docs.
Okay thanks for the pointers now working like a charm. But autocompletion for addEventListener, onclick etc still not available any config to be done for that or just create my own snippets for them?
Can you show an example where you'd expect a completion for addEventListener
but aren't getting it?
As shown in the screenshot
No available completion
But for others working great as shown below:
My Tern.sublime-settings file:
My .tern-project file @ /tern-for-sublime/node_modules/tern
Directory containing libs:
Your project file isn't being picked up. Probably because you didn't actually put it in your project dir. If you're trying to create a system-wide config, create a .tern-config
file in your home directory.
Yup got it working !!! Thought it might be a bug.Weird earlier es6 auto-complete working well and browser.json not picking up.Again,I don't know the implementation so anyways awesome job you've done with Tern and I loved your Eloquent book.Thanks!!
Installed tern for sublime text ,core javascript autocompletion works but DOM for methods like getElementById etc autocompletion is not available.Is this intentional?