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

Locations weird for documentSymbols #7795

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

Locations weird for documentSymbols #7795

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

Comments

@jez
Copy link
Collaborator

jez commented Mar 29, 2024

Input

→ View on sorbet.run

# typed: true

module Outer::Namespace
  def returns_integer
  end
end

Observed output

image

The bug here is in the documentSymbol feature. It appears that there's something wrong/overlapping about the locs that Sorbet reports for the definitions in this file, which causes VS Code to collapse the breadcrumbs by default.

Expected behavior

The breadcrumbs should automatically expand when you put your cursor on the returns_integer method.


@jez jez added IDE Relating to Sorbet's LSP server or VS Code extension bug Something isn't working labels Mar 29, 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

1 participant