There was a bug on LLDB VSCode where there was the following behavior:
//Code
struct foo { int bar: }; ... foo my_foo = {10};
Trying to auto-complete my_foo.b with my_foo.bar resulted instead with my_foo.my_foo.bar
This diff fixes this bug and adds some tests to check correct behavior.
It also fixes the same bug using the arrow operator (->) when user manually requests completions.
TODO: Fix bug where no recommended completions are automatically shown with arrow operator
also test this
foo.var1 + var2
foo.var1 + va