openscad-support-vscode
openscad-support-vscode copied to clipboard
Inner module only completes after its declaration location, not before
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:
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.