Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Parameter type suggestion does not work when inserting a space between the function name and the opening parenthesis #8862

Open
jpkraemer opened this issue Aug 26, 2014 · 1 comment

Comments

@jpkraemer
Copy link

Tern based parameter suggestions for function calls do not work when a space is between the function name and the opening parenthesis for the call.

Consider the following illustrative file contents:

function test (param) {
    return param % 2; 
}
test(2); 

test(

After the last line, Brackets will accurately display a popup showing "Number param". When changing the last line to test ( no popup will appear, although semantically both lines are equal.

Best,
Jan-Peter

@Mark-Simulacrum
Copy link
Contributor

From testing on the online tern demo, this appears to be a tern issue. Could possibly be related to ternjs/tern#241.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants