For the following intellisense features the entire file (or multiple files if dot sourced) is/are being searched through for variable and parameters:
- Get definition
- Get references
- Get occurrences
We need fix this to use the correct scope when searching on variables and parameters.