Skip to content
This repository has been 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
jtgrenz opened this issue Apr 25, 2019 · 3 comments
Closed

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

jtgrenz opened this issue Apr 25, 2019 · 3 comments
Assignees
Labels
bug Bug reports

Comments

@jtgrenz
Copy link

jtgrenz commented Apr 25, 2019

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

@wingrunr21
Copy link
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.

@wingrunr21 wingrunr21 self-assigned this Apr 25, 2019
@wingrunr21 wingrunr21 added the bug Bug reports label Apr 25, 2019
@jtgrenz
Copy link
Author

jtgrenz commented Apr 25, 2019

It looks like. My settings.json is set to

 "ruby.locate": {
        "exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}",
        "include": "**/*.rb"
    },

@wingrunr21
Copy link
Collaborator

Ok cool thanks for the information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug reports
Projects
None yet
Development

No branches or pull requests

2 participants