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

[Feature Request]: CLS: provide auto-complete suggestions for methods on types #24836

Open
DanilaFe opened this issue Apr 12, 2024 · 0 comments
Labels
area: Python bindings For things related to chapel-py, chpl-language-server, chplcheck, etc. area: Tools type: Feature Request user issue

Comments

@DanilaFe
Copy link
Contributor

This is a follow up to #24743.

The original issue asked for global symbols, such as here and Locales.size. We have the first one, provided via #24776. The second one is much more difficult; quoting myself from comments in #24743:

The latter is a bit more challenging. Today, CLS works by looking at the saved version of the file, largely because the parser isn't very good at recognizing partial programs. If you write:

var x = Locales.

It doesn't know what to do with that program, so it's difficult to provide intelligent suggestions. So, code completion based on context, such as 'what's on the left of the .?', is a bit further off in the future.

To provide intelligent autocompletion, we likely need some sort of partial and incremental parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Python bindings For things related to chapel-py, chpl-language-server, chplcheck, etc. area: Tools type: Feature Request user issue
Projects
None yet
Development

No branches or pull requests

1 participant