Skip to content

is it possible to autocomplete snippet name? #11

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

Open
amolkhatri opened this issue Dec 9, 2014 · 3 comments
Open

is it possible to autocomplete snippet name? #11

amolkhatri opened this issue Dec 9, 2014 · 3 comments

Comments

@amolkhatri
Copy link

No description provided.

@zaggino
Copy link
Member

zaggino commented Dec 9, 2014

Don't think so, this code
https://github.com/adobe/brackets/blob/master/src/editor/CodeHintManager.js#L475-L484
will get only first provider that has hints for a given language so it's not possible to inject more hints into the autocompletion. Please correct me if I'm wrong @TomMalbran

Of course there's a way of wrapping current hintProviders getHints method but that's kind of hacky.

@zaggino zaggino closed this as completed Dec 9, 2014
@zaggino zaggino reopened this Dec 9, 2014
@TomMalbran
Copy link

You are right about that, but if the providers with the greatest priorities have no hints, then it will call a new snippets provider. So it could be done, but in some languages, you might always get the language hints.

Maybe we should file a big so that the hints could be combined?

@zaggino
Copy link
Member

zaggino commented Dec 9, 2014

Yes, filing an issue in core would be probably preferred. I should be able to find a time to work on it, it's not a very busy time of the year right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants