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

Typedef variables in auto complete. #177

Open
MintPaw opened this issue Nov 22, 2014 · 3 comments
Open

Typedef variables in auto complete. #177

MintPaw opened this issue Nov 22, 2014 · 3 comments

Comments

@MintPaw
Copy link

MintPaw commented Nov 22, 2014

http://i.imgur.com/YlruEWj.png
In the screenshot above that variable "castTime" is in a typedef and should not be visible on the list.

@clemos
Copy link
Owner

clemos commented Nov 24, 2014

This is pretty difficult to do.
For top-level completions, we just use regexps to collect available variables / methods in current file, without really knowing the current scope... It's pretty much what the basic ST autocomplete does.
There are possible alternatives, the most viable being to implement recent compiler based top-level completion in this case (if available).

@MintPaw
Copy link
Author

MintPaw commented Dec 22, 2014

http://i.imgur.com/ddQD8Av.png

So a month later it seems the issue is worse than I thought originally. Is there no adherence to scope at all? I thought there had been, but it seems to be failing in very basic situations.

@clemos
Copy link
Owner

clemos commented Dec 22, 2014

As written previously, there is currently no adherence to scope for top-level completion (outside of . or ().
I don't have much time right now to look into implementing compiler based top level completion, but I'd be happy to review and merge any PR regarding this.

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