Skip to content

"Go to definition" showing not relevant list #2994

@jonathan-anyword

Description

@jonathan-anyword

Description

Ruby LSP Information

Ruby LSP Information

VS Code Version

1.96.1

Ruby LSP Extension Version

0.8.16

Ruby LSP Server Version

0.17.2

Ruby LSP Addons

Ruby Version

3.2.2

Ruby Version Manager

rbenv

Installed Extensions

Click to expand
  • circleci (2.8.4)
  • code-spell-checker (4.0.21)
  • copilot (1.253.0)
  • copilot-chat (0.23.2)
  • encode (1.1.0)
  • even-better-toml (0.19.2)
  • git-graph (1.30.0)
  • githistory (0.6.20)
  • gitlens (16.0.5)
  • makefile-tools (0.11.13)
  • markdown-preview-enhanced (0.8.15)
  • metals (1.45.0)
  • remote-containers (0.394.0)
  • remote-explorer (0.4.3)
  • remote-server (1.5.2)
  • remote-ssh (0.116.1)
  • remote-ssh-edit (0.87.0)
  • ruby-extensions-pack (0.1.12)
  • ruby-lsp (0.8.16)
  • scala (0.5.8)
  • sorbet-vscode-extension (0.3.37)
  • test-adapter-converter (0.2.1)
  • vscode-docker (1.29.3)
  • vscode-env (0.1.0)
  • vscode-postgres (1.4.3)
  • vscode-pull-request-github (0.102.0)
  • vscode-rdbg (0.2.2)
  • vscode-remote-extensionpack (0.26.0)
  • vscode-test-explorer (2.22.1)
  • vscode-yaml (1.15.0)

Ruby LSP Settings

Click to expand
Workspace
{}
User
{
  "enabledFeatures": {
    "codeActions": true,
    "diagnostics": true,
    "documentHighlights": true,
    "documentLink": true,
    "documentSymbols": true,
    "foldingRanges": true,
    "formatting": true,
    "hover": true,
    "inlayHint": true,
    "onTypeFormatting": true,
    "selectionRanges": true,
    "semanticHighlighting": true,
    "completion": true,
    "codeLens": true,
    "definition": true,
    "workspaceSymbol": true,
    "signatureHelp": true,
    "typeHierarchy": true
  },
  "featuresConfiguration": {},
  "addonSettings": {},
  "rubyVersionManager": {
    "identifier": "rbenv"
  },
  "customRubyCommand": "",
  "formatter": "auto",
  "linters": null,
  "bundleGemfile": "",
  "testTimeout": 30,
  "branch": "",
  "pullDiagnosticsOn": "both",
  "useBundlerCompose": false,
  "bypassTypechecker": false,
  "indexing": {},
  "erbSupport": true,
  "featureFlags": {}
}

Reproduction steps

When using "Go to definition" for a common named method like "call" vscode open box that shows unrelated classes with this method.
For example:
ModuleA::SubModuleA::ClassNameA.new.call()
Also "Go to definition" the new method is returning non-relevant list.
Using the Ruby Solargraph seems to work well with the link jumps.

Did I configured the extension wrong?
I dont see any special configuration except the version manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscodeThis pull request should be included in the VS Code extension's release notes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions