vscode-ruby-symbols icon indicating copy to clipboard operation
vscode-ruby-symbols copied to clipboard

FileParser "isA" methods are too broad

Open himebaugh opened this issue 1 year ago • 0 comments

The isAClassBlock, isAMethodBlock, etc. methods have a regex test that hits false positives which cause the GoTo definitions to not work.

Ex:

def foo
  css_class = 'test'
end

If you make the method above, the method will not show up in the symbol list because it now incorrectly thinks that the "css_class" variable was the start of a new class block because the regex for the test is just:

/class /.test(this.line)

himebaugh avatar Oct 04 '23 19:10 himebaugh