Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inner module only completes after its declaration location, not before #6

Open
mjparme opened this issue Sep 2, 2022 · 1 comment

Comments

@mjparme
Copy link

mjparme commented Sep 2, 2022

When you have an inner module the plugin only completes the module if you use it after its declaration location, not before.

module topLevelModule() {
   //will not get innerModule completion here
    module innerModule() {

    }

   //you will get a completion for innerModule here
}

It is perfectly fine to call the inner module before its declaration location. Indeed, completions for top level modules work in all locations. I have attached a gif demonstrating the problem:

innerModuleCompletionBug

@Leathong
Copy link
Owner

Leathong commented Sep 5, 2022

For performance, now only search backwards for symbols instead of searching for all symbols.
You can move the inner module to a separate file to around this problem for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants