Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Calling a class method renders a Constant in code outline #473

Closed

Description

@jtgrenz

Your environment

  • vscode-ruby version: 0.22.3
  • Ruby version:2.6.2
  • Ruby version manager (if any): chruby
  • VS Code version: Version 1.33.1 (1.33.1)
  • Operating System: MacOS 10.14.4 (Mojave)
  • Using language server? yes

Expected behavior

The outline displays Modules, Classes, Constants and Methods with is great. However, I expect it to show Constants that are declared, not classes called.

Actual behavior

Constant declared and called:
alt

alt

Class method called inside another method
alt

alt

Activity

  1. wingrunr21 commented on Apr 25, 2019

    @wingrunr21
    Collaborator

    Hmm, interesting. Are you using rubyLocate as well?

    I'll take a look at this. It's also technically reporting the wrong constant there.

  2. self-assigned this
    on Apr 25, 2019
  3. jtgrenz commented on Apr 25, 2019

    @jtgrenz
    Author

    It looks like. My settings.json is set to

     "ruby.locate": {
            "exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}",
            "include": "**/*.rb"
        },
  4. wingrunr21 commented on Apr 25, 2019

    @wingrunr21
    Collaborator

    Ok cool thanks for the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugBug reports

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions