This is an extension sample showing a very simple semantic tokens provider. This semantic tokens provider always returns all the tokens in a file.
For more background on semantic highlighting read here
Launch the extension and open the file sample/sample.semanticLanguage
and use the following settings: