One of the issues I'm having in my JS projects is the creation of tern-port files. It seems you can turn them off with --no-port-file but I'm unsure of how to do that with Oni!
@MikaAK i'm a big fan of tern myself and personally I just gitignore the port files it cool to know you can pass a flag can I ask where you've been passing the flag are you using tern directly or using deoplete tern.js or tern.vim?
I do have it in the gitignore which is fine for now, but it creates a lot of visual noise when you have hidden files on (something that's regular for me when working with .env files or .babelrc etc)
@Akin909
Here's a link to tern_for_vim's issue referencing diable: https://github.com/ternjs/tern_for_vim/issues/12
Seems you can pass them into ternjs directly see
http://ternjs.net/doc/manual.html
Search no-port-file
I suppose "language.javascript.languageServer.argument": ["--no-port-file"] hypothetically should the trick here. I'll test it out
@MikaAK if tern isn't a language server which you've setup and from its site I don't believe it is I dont think that will work, I have the following flag in my vimrc a variable which tern.vim allows you to specify let g:tern#arguments = ["--persistent"] perhaps you can add the --no-port-file argument there
@Akin909 you were spot on. I don't know why I didn't think of this. Though tern does run a server so I suppose it would be possible to make it compatible in some way (random thoughts)
Nice catch, @Akin909 !