-
Notifications
You must be signed in to change notification settings - Fork 52
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
Inconsistent info in tooltips #126
Comments
This seems to actually happen if you close the editor. If you create the sum.js /**
* Returns the sum of two numbers
* @param {Number} a The first operand
* @param {Number} b The second operand
* @return {Number} The sum of both operands
*/
function sum (a, b) {
return a + b
}
module.exports = sum and then i go into app.js and do the following: const sum = require('./sum')
sum( I get the correct tooltip: However, if I restart the editor and try to type Is there any way around this? |
Could you provide me with the relevant part of your |
Ah sorry, it was actually the same thing as Steps to reproduce:
/**
* Returns the sum of two operands
* @param {Number} a The first operand
* @param {Number} b The second operand
* @return {Number} The sum of both operands
*/
function sum (a, b) {
return a + b
}
const sum = require('./sum')
sum( At this point, everything works fine: Now, if you exit out of Sublime and reopen it, and then try doing |
I didn't manage to reproduce this. If I add the |
For the same code, I keep getting different stuff in my tooltip hints:
1.
2.
3.
I would prefer for it to always be 3, but most of the time I get the result from image 2. Is there anything I can do to make it so that it is always like image 3?
Here are my Tern user settings:
Thanks in advance!
The text was updated successfully, but these errors were encountered: