CoffeeScript bugs in WebStorm 10
There are a couple bugs in WebStorm 10 with regards to CoffeeScript. Including:
"Unused parameter" warnings which are incorrect, for example:
Meteor.publish 'locations', (city) ->
return Locations.find({origin: city})
The variable "city" is underlined and it says it's unused, even though that's not true.
Also, refactoring doesn't work in this situation either. If I select "city" and choose Refactor > Rename, it fails to rename the variable throughout the function. However, refactor/rename works fine in this case, if I wanted to rename "hello" to "goodbye":
myFunc = ->
hello = 'hi'
hello += '!'
请先登录再写评论。
Known issue, please see https://youtrack.jetbrains.com/issue/WEB-15914 and related tickets