vala-language-server icon indicating copy to clipboard operation
vala-language-server copied to clipboard

Completion: Only show properties when initializing Objects with properites

Open ErikReider opened this issue 3 years ago • 1 comments

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

ErikReider avatar May 06 '22 11:05 ErikReider

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.

Prince781 avatar May 06 '22 17:05 Prince781