generate.ts: reorder methods in qlanguageservergen{.cpp,_p.h}


Group the methods by request or notification instead of grouping by
request and register methods, so that for example:
    void registerDeclarationRequestHandler(...);
    void requestDefinition(...);
are next to each other in the cpp file (instead of begin 100 lines
apart).

Also remove some non-helpful comments.

This also helps making the diff of a later patch that will update the
types to 3.17 smaller.

Task-number: QTBUG-141713
Change-Id: I309d149817d9e903447293d535bb36e0068b80dd
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commita85c691935b24c51328005c826a6eb017cb30830
parentc3d6520f088dc4086a5f543af54fe25a742e0ed5
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeTue, 28 Apr 2026 07:14:07 +0000