Thank you for your interest in contributing to the Script VS Code extension! This document provides guidelines and instructions for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/vscode-script.git cd vscode-script - Install dependencies:
npm install
-
Create a new branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes
-
Test your changes:
- Press
F5in VS Code to launch Extension Development Host - Open
.scriptfiles to test functionality - Run tests:
npm test
- Press
-
Commit your changes:
git add . git commit -m "feat: add your feature description"
-
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request
- Use 2 spaces for indentation in JSON files
- Use 4 spaces for indentation in TypeScript files (if added)
- Follow existing patterns in the codebase
The syntax highlighting is defined in syntaxes/script.tmLanguage.json. To add new patterns:
- Identify the scope (e.g.,
keyword.control.script) - Add the pattern to the appropriate section
- Test with various code samples
Example:
{
"name": "keyword.control.new-keyword.script",
"match": "\\bnew_keyword\\b"
}- Create test files in a
test-files/directory - Include various Script language constructs
- Verify highlighting works correctly
We use conventional commits:
feat:New featuresfix:Bug fixesdocs:Documentation changesstyle:Code style changesrefactor:Code refactoringtest:Test additions/changeschore:Maintenance tasks
- Use the issue template
- Include VS Code version
- Include extension version
- Provide minimal reproduction steps
- Include sample code if applicable
Feel free to open an issue for questions or join the discussion in the Script language community.