Thank you for your interest in contributing to vscode-vba!
Report bugs or suggest new features.
Before opening an issue, please check that your issue or a similar one has not already been reported in the open issues.
In case it already is, add a reaction and any additional information.
- Discuss bigger changes: For significant changes, please discuss them first , so no effort is wasted.
- Small and focused PRs: Aim for one feature or bug fix per pull request. This simplifies reviews and accelerates merging
VS Code uses TextMate Grammars and Oniguruma regexes.
Oniguruma is mostly compatible with PCRE (Comparison), so regexr in PCRE mode is a good choice for development.
For a list of predefined grammar scopes see the TextMate Manual.
To manually inspect the scopes in the editor,
execute Developer: Inspect Tokens and Scopes
from the command palette (F1).
Ensure your PR contains tests to cover the feature or bug fix. This prevents regressions and makes reviewing the changes easier by providing a proof of correct functionality.
Tests for the language grammar are in syntaxes/tests/
.
Run them using:
pnpm run test
Adding snippets is as simple as editing snippets/vba_snippets.yml
.
Refer to the official documentation for guidance.
To install a development version of the extension, follow these steps:
-
pnpm run install-dev-ext
- Reload the VS Code window:
- Execute
Reload Window
from the command palette (F1)
- Execute
Note: Uninstalling previous versions is not necessary.
Follow these steps to set up your development environment:
- Install development tools
- Fork and clone the repository https://github.com/serkonda7/vscode-vba
- Install dependencies
cd vscode-vba pnpm install
- Create a new branch and make your changes