adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

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

Open jpkraemer opened 10 years ago

jpkraemer commented 10 years ago

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 commented 10 years ago

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