generate.ts: update documentation and simplify workflow


Update the documentation and simplify the type generation workflow by
adding missing steps to the npm script. With this commit, `npm run
generate` will compile the typescript to JS, run the JS to actually
generate the LSP types, and format them via clang-formatter. It
previously just compiled the .ts files.

Note that npm automatically runs the pregeneration and postgeneration
steps when requesting the "generation" script.

Change-Id: Ice7340838351ed7fde972075bc62b94cade869cd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit2d7b599c8d41c33d5cdeb2a1f7451301088b748e
parentdba4b9f82a54fcb0156bd7399625dd8fbf400020
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeThu, 3 Sep 2026 11:56:52 +0000