Thanks for your interest in contributing to Go Syntax!
Any kind of PR (e.g., tests, performance improvements, bug fixes, features, typos) is welcome!
We include a simple scenario demonstrating each change in semantic_tokens.go. We take advantage of Git version control to test changes. Eventually, running tests will generate snapshot files, and we will be able to see the differences. This helps us to ensure that we are not breaking anything in the existing sample code.
Please add a sample of Go code related to your PR in semantic_tokens.go. Refer to the Makefile for detailed test commands.
You need to install vscode-tmgrammar-test before running the tests.
Install it globally:
npm i -g vscode-tmgrammar-testIn the go-syntax directory, run the following tests:
-
Stress Test
make stress
-
Semantic Tokens Test
make ready
Many changes may occur in the tests depending on your PR, which is fine.