-
Notifications
You must be signed in to change notification settings - Fork 185
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
Variable symbols #15
Variable symbols #15
Conversation
Current coverage is 89.94% (diff: 100%)@@ master #15 diff @@
==========================================
Files 14 14
Lines 182 189 +7
Methods 29 30 +1
Messages 0 0
Branches 0 0
==========================================
+ Hits 163 170 +7
Misses 19 19
Partials 0 0
|
Should we? I remember that TypeScript language server once behaved that way, and they changed the behavior: microsoft/TypeScript#8218 |
I have latest version of typescript and it does not show symbols inside functions. From my point of view it's better to hide symbols inside functions. |
Alternatively we can add option to enable/disable this behavior. |
I double checked and you are right, we should follow TS' behavior here. A setting may be nice for a future update, but low priority. |
Could you rebase this on master (so it only includes the actual code changes)? |
yes. |
To prevent this in the future, do you have a recommendation for #12 ? |
I was unable to rebase the branch so I created another pull request #16 . |
We should exclude variable symbols that are defined in function and method body.