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

Hovering over comment inside rescue body shows Void #7739

Open
jez opened this issue Mar 1, 2024 · 0 comments
Open

Hovering over comment inside rescue body shows Void #7739

jez opened this issue Mar 1, 2024 · 0 comments
Labels
enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension

Comments

@jez
Copy link
Collaborator

jez commented Mar 1, 2024

Input

→ View on sorbet.run

# typed: true

def example
  begin
    puts
  rescue => e
    # comment
    puts
  end
end

Observed output

No errors! Great job.

If you hover over the # comment line, Sorbet shows the hover type as Sorbet::Private::Static::Void.

Expected behavior

Sorbet should not show any results, because the user isn't hovering over anything conceptually.


@jez jez added enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or surprising current feature IDE Relating to Sorbet's LSP server or VS Code extension
Projects
None yet
Development

No branches or pull requests

1 participant