Skip to content

Commit d14c805

Browse files
Copilotrebornix
andcommitted
Remove all changes except copilot-setup-steps.yml as requested
Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>
1 parent e1be278 commit d14c805

6 files changed

Lines changed: 6 additions & 419 deletions

File tree

CONTRIBUTING.md

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -67,65 +67,16 @@ Please include the following with each issue:
6767
# Developing
6868

6969
## Requirements
70-
- **Node.js 22.14.0 or higher** (see [Node Version](#node-version-management) below)
71-
- **npm 9.0.0 or higher**
70+
- Node 22.x
7271
- Python >= 3.10, <= 3.12
7372
- Git Large File Storage (LFS) - for running tests
7473
- (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)
7574

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-
10375
### First-time setup
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
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.
12980

13081
**Tip:** If "Launch Copilot Extension - Watch Mode" doesn't work for you, try using the "Launch Copilot Extension" debug configuration instead.
13182

README.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,6 @@ To get the latest security fixes, please use the latest version of the Copilot e
6868
* **[FAQ](https://code.visualstudio.com/docs/copilot/faq)**
6969
* **[Feedback](https://github.com/microsoft/vscode-copilot-release/issues)**: We'd love to get your help in making GitHub Copilot better!
7070

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-
9871
## Data and telemetry
9972

10073
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.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,7 +3936,6 @@
39363936
"singleQuote": true
39373937
},
39383938
"scripts": {
3939-
"check-env": "node ./script/setup/checkNodeVersion.js",
39403939
"postinstall": "tsx ./script/postinstall.ts",
39413940
"prepare": "husky",
39423941
"vscode-dts:dev": "node node_modules/@vscode/dts/index.js dev && mv vscode.proposed.*.ts src/extension",
@@ -3966,7 +3965,7 @@
39663965
"simulate-ci": "node dist/simulationMain.js --ci --require-cache",
39673966
"simulate-update-baseline": "node dist/simulationMain.js --update-baseline",
39683967
"simulate-gc": "node dist/simulationMain.js --require-cache --gc",
3969-
"setup": "npm run check-env && npm run get_env && npm run get_token",
3968+
"setup": "npm run get_env && npm run get_token",
39703969
"setup:dotnet": "run-script-os",
39713970
"setup:dotnet:darwin:linux": "curl -O https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.sh && chmod u+x dotnet-install.sh && ./dotnet-install.sh --channel 10.0 && rm dotnet-install.sh",
39723971
"setup:dotnet:win32": "powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1 -OutFile dotnet-install.ps1; ./dotnet-install.ps1 -channel 10.0; Remove-Item dotnet-install.ps1\"",

script/postinstall.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,9 @@
66
import { downloadZMQ } from '@vscode/zeromq';
77
import * as fs from 'fs';
88
import * as path from 'path';
9-
import { execSync } from 'child_process';
109
import { compressTikToken } from './build/compressTikToken';
1110
import { copyStaticAssets } from './build/copyStaticAssets';
1211

13-
// Check Node.js version before proceeding
14-
function checkNodeVersion(): void {
15-
const packageJsonPath = path.join(__dirname, 'package.json');
16-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
17-
18-
const requiredNodeVersion = packageJson.engines?.node;
19-
if (!requiredNodeVersion) {
20-
return;
21-
}
22-
23-
const currentNodeVersion = process.version;
24-
const currentVersion = currentNodeVersion.slice(1);
25-
26-
const requiredMatch = requiredNodeVersion.match(/>=(\d+)\.(\d+)\.(\d+)/);
27-
if (!requiredMatch) {
28-
return;
29-
}
30-
31-
const [, reqMajor, reqMinor, reqPatch] = requiredMatch.map(Number);
32-
const [currentMajor, currentMinor, currentPatch] = currentVersion.split('.').map(Number);
33-
34-
const isVersionValid =
35-
currentMajor > reqMajor ||
36-
(currentMajor === reqMajor && currentMinor > reqMinor) ||
37-
(currentMajor === reqMajor && currentMinor === reqMinor && currentPatch >= reqPatch);
38-
39-
if (!isVersionValid) {
40-
console.error('\n❌ Node.js version requirement not met!');
41-
console.error(`Required: ${requiredNodeVersion}`);
42-
console.error(`Current: ${currentNodeVersion}`);
43-
console.error('\nPlease upgrade your Node.js version.');
44-
console.error('Run: npm run check-env for detailed instructions.');
45-
process.exit(1);
46-
}
47-
}
48-
4912
export interface ITreeSitterGrammar {
5013
name: string;
5114
/**
@@ -100,9 +63,6 @@ const treeSitterGrammars: ITreeSitterGrammar[] = [
10063
const REPO_ROOT = path.join(__dirname, '..');
10164

10265
async function main() {
103-
// Check Node.js version before starting
104-
checkNodeVersion();
105-
10666
await fs.promises.mkdir(path.join(REPO_ROOT, '.build'), { recursive: true });
10767

10868
const vendoredTiktokenFiles = ['src/platform/tokenizer/node/cl100k_base.tiktoken', 'src/platform/tokenizer/node/o200k_base.tiktoken'];

script/setup/checkNodeVersion.js

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)