justinmahar / SublimeCSAutocompletePlus

CoffeeScript autocompletions and more!
172 stars 12 forks source link

Type hints for parameters to anon functions #17

Open Iristyle opened 11 years ago

Iristyle commented 11 years ago

Assume this basic definition for class Bar

class Bar
  constructor: (@baz) ->

  # @return [String]
  doIt: () ->
    return ''

I would like to be able to annotate the parameter

someFunction = (
  # [Bar]
  bar
  ) ->
    bar.doIt()

And get completion on bar.

At the moment, some sort of window flashes really quickly and then disappears...