Type: LanguageService
Describe the bug
In class definition, Intellisense suggest inherited virtual function's name after a non-primitive return type name like std::string or float_type with using float_type = double;, which is handy when writing an overriding function. But the same suggestion is missing if the return type name inputted is an primitive type like int or double.
To Reproduce
struct A {
using int_type = int;
virtual int_type get_an_int() { return 42; };
virtual double get_a_double() { return 42.; };
};
struct B : A {
// won't suggest after `int `
// int get_an_int() override { return 42; }
// suggest `get_an_int` & `get_a_double` after `int_type `
int_type get_an_int() override { return 42; }
};
Our code is disabling completion when the previous token is a built-in type keyword -- I'm not sure what the original reasoning behind that was. VS enables completion in this case, but only when it's manually invoked.
I believe this will be addressed with #4737. I will close this as a duplicate.
Most helpful comment
I believe this will be addressed with #4737. I will close this as a duplicate.