-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding syntax highlighting #1041
Adding syntax highlighting #1041
Conversation
Signed-off-by: Jens Johansson <jens.johansson@systemverification.com>
Signed-off-by: Jens Johansson <jens.johansson@systemverification.com>
The build failed @jensakejohansson, do you have any idea why? |
Signed-off-by: Jens Johansson <jens.johansson@systemverification.com>
@sriv Seems it failed due to a rule in TSLint in the pipeline which doesn't apply in my local env. Changed the expression so now the linter should accept it. |
Signed-off-by: Jens Johansson <jens.johansson@systemverification.com>
@sriv Addad a small adjustment to also highlight concept arguments and not only arguments in steps. It was a late night yesterday, so I missed that :) Feel free to make a build when you have time... |
@jensakejohansson Thank you for contributing to gauge-vscode. Your pull request has been labeled as a release candidate 🎉🎉. Merging this PR will trigger a release. Please bump up the version as part of this PR.Instructions to bump the version can found at CONTRIBUTING.md If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done. |
…ge server. (#1038) * Added setting for config Gauge formatter and send the settings to Gauge server. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Added setting for config Gauge formatter and send the settings to Gauge server. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Bump @types/node from 22.10.10 to 22.13.0 (#1039) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.10.10 to 22.13.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Adding syntax highlighting (#1041) * Adding code & default config syntax highlighting. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Adding code & default config syntax highlighting. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Adding code & default config syntax highlighting. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Adding code & default config syntax highlighting. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> --------- Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Added setting for config Gauge formatter and send the settings to Gauge server. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> * Added setting for config Gauge formatter and send the settings to Gauge server. Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> --------- Signed-off-by: Jens Johansson <jens.johansson@systemverification.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@jensakejohansson thanks for this, it was a very welcome surprise when I was working on some specs today! |
Hi!
@sriv @zabil
Addressing this issue:
#884
Implemented syntax highlighting. All token-matching is done on extensions side. Extension provides default colors that works fine with VSC default (dark) theme, but can be overridden in settings.json.
Also, during test development I often want to temporarily disable one or multiple steps in a scenario. Although it's not technically markdown I simply put the common "//" in front of the step (and any table) and then the runner ignores it. I've added a binding to VSC short-cut for comment/un-comment that adds "//" at the beginning of the line (which makes it possible to disable many steps quickly my selecting multiple lines). I find it very convenient and I don't see that it does any harm.
Default look example:
To override any user can just set their values/colors accordingly:
![bild](https://private-user-images.githubusercontent.com/12295087/409332354-39daea50-5850-495a-b8cf-7bbf4534631b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDI3NTUsIm5iZiI6MTczOTYwMjQ1NSwicGF0aCI6Ii8xMjI5NTA4Ny80MDkzMzIzNTQtMzlkYWVhNTAtNTg1MC00OTVhLWI4Y2YtN2JiZjQ1MzQ2MzFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2NTQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0YTllYTkzMGFhYzcyZWQyNzdmN2MwMGIyYWE2N2RjZWRiZmEwODc0NWFhYzIzZWU1OWJjMDA3ZjZiMzhmZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GQWE45RtDz6LMfbV_M6tErmfPwLpd4QLp2YqyG4DfWo)