castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 25 forks source link

Symlinked directories break functionality #205

Open joe-p opened 3 years ago

joe-p commented 3 years ago

When code exists in a symlinked directory, it is not properly capture by solargraph and does not show in the IntelliSense menu.

For example, with the following directory structure:

.
├── foo
│   └── foo.rb
└── test.rb

With foo.rb containing the following:

module Foo
    class Bar
        def some_method
            puts "Hello World"
        end
    end
end

When typing Foo:: in test.rb, it properly shows Bar in the IntelliSense menu.

Code_yMDOtwjqMx

When the foo directory is a symlink, however, Bar does not appear in the IntelliSense menu. Instead it just shows constants in the top-level namespace (ARGF, ArgumentError, ARGV, etc.).

Code_Xn1wQxqPEU