Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method comments don't appear when using T::Sig::WithoutRuntime.sig #7802

Open
qaisjp opened this issue Apr 2, 2024 · 0 comments
Open

Method comments don't appear when using T::Sig::WithoutRuntime.sig #7802

qaisjp opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working IDE Relating to Sorbet's LSP server or VS Code extension

Comments

@qaisjp
Copy link
Collaborator

qaisjp commented Apr 2, 2024

Input

→ View on sorbet.run

# typed: true
extend T::Sig

# foo does x
sig {params(x: Integer).void}
def foo(x)
  puts(x + 1)
end

# bar does foo… without runtime!
T::Sig::WithoutRuntime.sig {params(x: Integer).void}
def bar(x)
  puts(x + 1)
end

Observed output

image image

Expected behavior

Hovering over bar should show a comment like it does for foo.

@qaisjp qaisjp added bug Something isn't working unconfirmed This issue has not yet been confirmed by the Sorbet team labels Apr 2, 2024
@jez jez added IDE Relating to Sorbet's LSP server or VS Code extension and removed unconfirmed This issue has not yet been confirmed by the Sorbet team labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IDE Relating to Sorbet's LSP server or VS Code extension
Projects
None yet
Development

No branches or pull requests

2 participants