-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
remove tern port files #3465
remove tern port files #3465
Conversation
does this have any drawbacks? |
from here. |
I guess I can make it a spacemacs variable. It's been a while since I've added much, what's the correct way of introducing a variable with a default value that can be overridden in a users |
Yeah make it a variable -- not everybody is bothered by it. |
ad0b85a
to
807108c
Compare
All done. |
Need this! Just edited some Javascript files and found .tern-port all around 😞 |
Should this variable be t by default? I think people might appreciate it, @TheBB |
+1 for t by default. |
You're going to need to rebase ;) |
807108c
to
6935ee5
Compare
Done and done. |
6935ee5
to
5904d79
Compare
Hey, can we merge this? |
@StreakyCobra this looks ok should be merged if there is no argument against it |
OK to be merged? (sorry about the spam, just want to move off've my branch with this enabled to develop with this in it 😄 ) |
Should prolly squash |
5904d79
to
deb9b39
Compare
squashed. For future reference, is that standard practice for spacemacs? should I be doing that in general if I have multi-commit PRs? should be ready to be merged now. |
@@ -191,6 +191,9 @@ | |||
:init (add-hook 'js2-mode-hook 'tern-mode) | |||
:config | |||
(progn | |||
(if javascript-disable-tern-port-files | |||
(setq tern-command (append tern-command '("--no-port-file"))) | |||
nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaner: (when javascript-disable-tern-port-files (add-to-list 'tern-command "--no-port-file" 'append))
Yes, at least when they are this small and related to each other. I made one last comment. Other than that it looks ok to me. |
@@ -54,6 +54,12 @@ To activate error checking using flycheck install =JSHint=: | |||
|
|||
* Configuration | |||
|
|||
To make tern re-use the server across multiple different editing sessions (thus creating multiple `.tern-port` files for each document you have open [[http://ternjs.net/doc/manual.html][see here for more details]]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and this line is too long. :-s
deb9b39
to
73031fd
Compare
All done! |
👍 |
Thank you! Cherry-picked in develop. You can safely delete your branch. |
Reopen for hotfix. |
Hotfixed in 0.105.15 |
Javascript mode leaves a bunch of
.tern-port
files lying around everywhere you edit a javascript file. To avoid having to add these to any projects.gitignore
don't create them in the first place.