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

Completion: Only show properties when initializing Objects with properites #242

Open
ErikReider opened this issue May 6, 2022 · 1 comment
Labels
enhancement A new feature

Comments

@ErikReider
Copy link
Contributor

Atm everything except for the class properties are visible. In the example below, the only completions that should be shown should be the class properties (prop1 and prop2)

image

This is how omnisharp (C# LSP) handles this:
image

Example: https://docs.elementary.io/develop/writing-apps/code-style#initialize-objects-with-properites

@Prince781 Prince781 added the enhancement A new feature label May 6, 2022
@Prince781
Copy link
Member

This is tricky to implement because we have to be aware of the surrounding expression. The Vala parser is currently not able to deal with this very well, so we would have to implement something in Vls.SymbolExtractor.

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

No branches or pull requests

2 participants