sashi0034 / angel-lsp

AngelScript Language Server for VSCode
https://marketplace.visualstudio.com/items?itemName=sashi0034.angel-lsp
MIT License
15 stars 5 forks source link

No completions when using types outside of the namespace they are defined in. #6

Closed MineBill closed 3 months ago

MineBill commented 3 months ago
namespace Game {
    class Player {

        string GetName() {
            return "Name";
        }
    }

    void Test() {
        Player p;
    }
}

Accessing the player variable inside the Game::Test function, correctly offers the GetName method for completion: image

However, when using the Game::Player type outside the Game namespace, no completions are offered: image This completion pop-up was forced open by pressing Ctrl+Space. Normally, nothing appears, which might not have been immediately apparent in the screenshot.

sashi0034 commented 3 months ago

Oh, thank you for the report.