crystal-lang-tools/vscode-crystal-lang

Type and method introspection not working

divmgl opened this issue · 1 comments

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):

  • OS: macOS
  • Crystal version: Crystal 1.4.1 (2022-04-22)
  • This plugin version: 0.6.0

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