castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 25 forks source link

Intellicense not working when writing functions #169

Closed ahparsapour closed 3 years ago

ahparsapour commented 4 years ago

Hi, When I open a script and try to write a function in it, intellicense doesn't work within function scope. What shoud I do?

castwide commented 4 years ago

Sorry for the late reply. Can you provide an example? This feature typically works for me. One caveat: you may have to add the end line first. Examples:

class Example1
  attr_accessor :foo
  def bar
    # Intellisense won't detect `foo` here because the function is not closed
end
class Example2
  attr_accessor :foo
  def bar
    # Intellisense detects `foo` here
  end
end
castwide commented 3 years ago

Closing for inactivity.