Class constructor completion uses index instead of class declaration resolver