You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+54-5Lines changed: 54 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,16 +67,65 @@ Please include the following with each issue:
67
67
# Developing
68
68
69
69
## Requirements
70
-
- Node 22.x
70
+
-**Node.js 22.14.0 or higher** (see [Node Version](#node-version-management) below)
71
+
-**npm 9.0.0 or higher**
71
72
- Python >= 3.10, <= 3.12
72
73
- Git Large File Storage (LFS) - for running tests
73
74
- (Windows) Visual Studio Build Tools >=2019 - for building with node-gyp [see node-gyp docs](https://github.com/nodejs/node-gyp?tab=readme-ov-file#on-windows)
74
75
76
+
### Node Version Management
77
+
78
+
This project requires Node.js 22.14.0 or higher. The exact version used by the project is specified in `.nvmrc`.
79
+
80
+
**Using Node Version Manager (nvm) - Recommended:**
81
+
```bash
82
+
# Install and use the correct Node.js version
83
+
nvm install 22.15.1
84
+
nvm use 22.15.1
85
+
86
+
# Verify version
87
+
node --version # should show v22.15.1 or higher
88
+
```
89
+
90
+
**Manual Installation:**
91
+
Download Node.js 22.x from [nodejs.org](https://nodejs.org/) if you prefer not to use nvm.
92
+
93
+
### Copilot Agent Environment Setup
94
+
95
+
This extension works with GitHub Copilot agents and requires proper authentication and environment configuration. Follow these steps for agent environment customization:
96
+
97
+
1.**GitHub Authentication**: Ensure you have access to GitHub Copilot
98
+
2.**Development Token**: Run `npm run get_token` to set up your development OAuth token
99
+
3.**Environment Variables**: Run `npm run get_env` to configure additional secrets (for Microsoft team members)
100
+
101
+
For more details on customizing the Copilot agent environment, see the [GitHub Copilot documentation](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment).
102
+
75
103
### First-time setup
76
-
- on Windows you need to run `Set-ExecutionPolicy Unrestricted` as admin in Powershell.
77
-
-`npm install`
78
-
-`npm run get_token`
79
-
- Then you can run the build task with `cmd+shift+B`, or just start the "Launch Copilot Extension - Watch Mode" launch config to start the build then start debugging the extension.
104
+
1.**Check Prerequisites**: Verify your development environment meets the requirements
105
+
```bash
106
+
# Check Node.js and npm versions
107
+
npm run check-env
108
+
```
109
+
110
+
2.**Windows Setup**: On Windows, run `Set-ExecutionPolicy Unrestricted` as admin in Powershell.
111
+
112
+
3.**Install Dependencies**:
113
+
```bash
114
+
npm install
115
+
```
116
+
117
+
4.**Authentication Setup**:
118
+
```bash
119
+
# Set up GitHub OAuth token for development
120
+
npm run get_token
121
+
122
+
# (Microsoft team members only) Set up additional environment variables
123
+
npm run get_env
124
+
```
125
+
126
+
5.**Start Development**:
127
+
- Use VS Code's build task: `Ctrl+Shift+P` → "Tasks: Run Build Task"
128
+
- Or start the "Launch Copilot Extension - Watch Mode" launch config to build and debug the extension
80
129
81
130
**Tip:** If "Launch Copilot Extension - Watch Mode" doesn't work for you, try using the "Launch Copilot Extension" debug configuration instead.
***[Feedback](https://github.com/microsoft/vscode-copilot-release/issues)**: We'd love to get your help in making GitHub Copilot better!
70
70
71
+
## Development Setup
72
+
73
+
Interested in contributing to the GitHub Copilot Chat extension? Get started with development:
74
+
75
+
### Prerequisites
76
+
-**Node.js 22.14.0+**: Required for building and running the extension
77
+
-**GitHub Copilot Access**: Needed for testing and development
78
+
-**Git LFS**: Required for accessing test fixtures and large files
79
+
80
+
### Quick Start
81
+
```bash
82
+
# Check your development environment
83
+
npm run check-env
84
+
85
+
# Install dependencies and set up authentication
86
+
npm run setup
87
+
88
+
# Start development in VS Code
89
+
# Use "Launch Copilot Extension - Watch Mode" debug configuration
90
+
```
91
+
92
+
### Detailed Instructions
93
+
For comprehensive setup instructions, development guidelines, and contribution information, see [CONTRIBUTING.md](CONTRIBUTING.md).
94
+
95
+
### Customizing the Agent Environment
96
+
Learn about customizing GitHub Copilot agents for your development workflow in the [GitHub documentation](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment).
97
+
71
98
## Data and telemetry
72
99
73
100
The GitHub Copilot Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://privacy.microsoft.com/privacystatement) to learn more. This extension respects the `telemetry.telemetryLevel` setting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.
0 commit comments