vscode-ruby-symbols
vscode-ruby-symbols copied to clipboard
FileParser "isA" methods are too broad
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)