crystal-lang-tools / vscode-crystal-lang

Yet another VSCode extension for Crystal Programming Language
https://marketplace.visualstudio.com/items?itemName=crystal-lang-tools.crystal-lang
MIT License
277 stars 58 forks source link

Type and method introspection not working #152

Closed divmgl closed 8 months ago

divmgl commented 2 years ago

So I've defined an argument of type String in my function:

module Jackd::Validation
  def validate_tube_name(name : String)
  end
end

But when I go to use the name variable, I get these class Object methods available to me:

Screen Shot 2022-04-29 at 1 13 26 PM

What's also weird is that when I go to use one of these methods, I have no details as to the parameters these methods accept:

Screen Shot 2022-04-29 at 1 14 01 PM

It's just blank.

Expected behavior

  1. I can see all of the methods that are available to String objects in the stdlib.
  2. When using a method, I can see its parameters and any comments for those parameters.

Desktop (please complete the following information):

nobodywasishere commented 8 months ago

Are you using Crystalline? If not I'm not sure if method autocomplete is within the scope of this extension, as it will require something on the level of an LSP to accomplish