rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
152 stars 47 forks source link

Fixes completions when file in multiple scopes #1238

Closed markwpearce closed 2 weeks ago

markwpearce commented 2 weeks ago

There was a bug that if a file was in multiple scopes, global completions and completions for the same file were only included once, that is not for every scope. However, there's also a process that filters out completions that don't work for every scope.

This is not the most performant code, because it has to link every scope, as well as do symbol tables checks for every scope, but it works.

image

Addresses: #1235