The document seems to slightly contradict itself regarding trailing commas, since the perhaps most popular user-facing use by VS Code supports them (as stated in a footnote after all). In fact, in the user config which to my knowledge is meant to be JSONC, and represents one of the main advantages JSONC has over JSON which is that it's nicer to write configs in as a human, it won't even warn about trailing commas:
Therefore, if you attempt to specify JSONC such that it includes the VS Code use of it, trailing commas should probably be included as allowed even if discourged.
For what it's worth, I wrote a specification of the VS Code JSONC format a while ago.