Skip to content

Commit 691b5b1

Browse files
Merge branch 'main' into 243202
2 parents 9f1dbf0 + 203601f commit 691b5b1

File tree

799 files changed

+17447
-11633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

799 files changed

+17447
-11633
lines changed

.eslint-plugin-local/code-import-patterns.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ConditionalPattern {
1818

1919
interface RawImportPatternsConfig {
2020
target: string;
21-
layer?: 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-utility' | 'electron-main';
21+
layer?: 'common' | 'worker' | 'browser' | 'electron-browser' | 'node' | 'electron-utility' | 'electron-main';
2222
test?: boolean;
2323
restrictions: string | (string | ConditionalPattern)[];
2424
}
@@ -80,7 +80,7 @@ export = new class implements eslint.Rule.RuleModule {
8080
return this._optionsCache.get(options)!;
8181
}
8282

83-
type Layer = 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-utility' | 'electron-main';
83+
type Layer = 'common' | 'worker' | 'browser' | 'electron-browser' | 'node' | 'electron-utility' | 'electron-main';
8484

8585
interface ILayerRule {
8686
layer: Layer;
@@ -98,7 +98,7 @@ export = new class implements eslint.Rule.RuleModule {
9898
{ layer: 'common', deps: orSegment(['common']) },
9999
{ layer: 'worker', deps: orSegment(['common', 'worker']) },
100100
{ layer: 'browser', deps: orSegment(['common', 'browser']), isBrowser: true },
101-
{ layer: 'electron-sandbox', deps: orSegment(['common', 'browser', 'electron-sandbox']), isBrowser: true },
101+
{ layer: 'electron-browser', deps: orSegment(['common', 'browser', 'electron-browser']), isBrowser: true },
102102
{ layer: 'node', deps: orSegment(['common', 'node']), isNode: true },
103103
{ layer: 'electron-utility', deps: orSegment(['common', 'node', 'electron-utility']), isNode: true, isElectron: true },
104104
{ layer: 'electron-main', deps: orSegment(['common', 'node', 'electron-utility', 'electron-main']), isNode: true, isElectron: true },

.github/chatmodes/learn.chatmode.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
description: 'Save learnings from conversation'
3+
tools: ['codebase', 'editFiles', 'githubRepo', 'runCommands', 'search', 'searchResults', 'usages']
4+
---
5+
Please take a moment and deeply reflect on all the steps you took and think if there would have been a piece of information which would have allowed you to work faster (take less steps).
6+
7+
The file .vscode/project.instructions.md has been already provided to you. Edit the file such that it would contain information which would have made you work faster. Please don't make this too specific to this task, but rather something that is generic but useful enought to ensure speed-ups in the future for other tasks.

.github/chatmodes/plan.chatmode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
description: 'Plan the solution for a problem.'
3+
tools: ['codebase', 'findTestFiles', 'githubRepo', 'search', 'searchResults', 'usages']
4+
---
5+
I need your help with the following problem. Please take a look, understand the request in depth, and if the request makes sense, research it, understand the existing code, then suggest a clear plan with steps to take to address the request.

.github/commands.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,5 +538,62 @@
538538
"addLabel": "info-needed",
539539
"removeLabel": "~confirmation-needed",
540540
"comment": "Please diagnose the root cause of the issue by running the command `F1 > Help: Troubleshoot Issue` and following the instructions. Once you have done that, please update the issue with the results.\n\nHappy Coding!"
541+
},
542+
{
543+
"type": "label",
544+
"name": "~chat-rate-limiting",
545+
"removeLabel": "~chat-rate-limiting",
546+
"action": "close",
547+
"reason": "not_planned",
548+
"comment": "This issue is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/2627. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
549+
},
550+
{
551+
"type": "label",
552+
"name": "~chat-request-failed",
553+
"removeLabel": "~chat-request-failed",
554+
"action": "close",
555+
"reason": "not_planned",
556+
"comment": "This issue is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/4332. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
557+
},
558+
{
559+
"type": "label",
560+
"name": "~chat-rai-content-filters",
561+
"removeLabel": "~chat-rai-content-filters",
562+
"action": "close",
563+
"reason": "not_planned",
564+
"comment": "This issue is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/2625. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
565+
},
566+
{
567+
"type": "label",
568+
"name": "~chat-public-code-blocking",
569+
"removeLabel": "~chat-public-code-blocking",
570+
"action": "close",
571+
"reason": "not_planned",
572+
"comment": "This issue is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/2626. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
573+
},
574+
{
575+
"type": "label",
576+
"name": "~chat-lm-unavailable",
577+
"removeLabel": "~chat-lm-unavailable",
578+
"action": "close",
579+
"reason": "not_planned",
580+
"comment": "This issue is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/2116. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
581+
},
582+
{
583+
"type": "label",
584+
"name": "~chat-authentication",
585+
"removeLabel": "~chat-authentication",
586+
"action": "close",
587+
"reason": "not_planned",
588+
"comment": "Please look at the following meta issue: https://github.com/microsoft/vscode-copilot-release/issues/11078, if the bug you are experiencing is not there, please comment on this closed issue thread so we can re-open it.",
589+
"assign": ["TylerLeonhardt"]
590+
},
591+
{
592+
"type": "label",
593+
"name": "~chat-no-response-returned",
594+
"removeLabel": "~chat-no-response-returned",
595+
"action": "close",
596+
"reason": "not_planned",
597+
"comment": "Please look at the following meta issue: https://github.com/microsoft/vscode-copilot-release/issues/7034. Please refer to that issue for updates and discussions. Feel free to open a new issue if you think this is a different problem."
541598
}
542599
]

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
disturl="https://electronjs.org/headers"
22
target="35.5.1"
3-
ms_build_id="11708675"
3+
ms_build_id="11727614"
44
runtime="electron"
55
build_from_source="true"
66
legacy-peer-deps="true"
77
timeout=180000
8+
npm_config_node_gyp="node build/npm/gyp/node_modules/node-gyp/bin/node-gyp.js"

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
"VSCODE_SKIP_PRELAUNCH": "1",
255255
},
256256
"cleanUp": "wholeBrowser",
257+
"killBehavior": "polite",
257258
"runtimeArgs": [
258259
"--inspect-brk=5875",
259260
"--no-cached-data",

.vscode/notebooks/api.github-issues

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"kind": 2,
99
"language": "github-issues",
10-
"value": "$REPO=repo:microsoft/vscode\n$MILESTONE=milestone:\"May 2025\""
10+
"value": "$REPO=repo:microsoft/vscode\n$MILESTONE=milestone:\"June 2025\""
1111
},
1212
{
1313
"kind": 1,

.vscode/project.instructions.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
applyTo: '**'
3+
---
4+
5+
# VS Code Copilot Development Guide
6+
7+
This file contains key information to help AI assistants work more efficiently with the VS Code codebase.
8+
9+
## Quick Reference for Common Issues
10+
11+
### Build & Test Workflow
12+
1. **Compile**: `npm run compile` (required before testing code changes)
13+
2. **Run specific tests**: `./scripts/test.sh --grep "pattern"`
14+
3. **Test file location**: `out/` directory contains compiled JavaScript
15+
4. **Extension compilation**: Extensions compile separately and take significant time
16+
17+
### Code Architecture Patterns
18+
19+
#### Testing Strategy
20+
- Unit tests in `src/vs/*/test/` directories
21+
- Integration tests in `test/` directory
22+
- Use `npm run compile` before running node-based tests
23+
24+
## Common Gotchas
25+
26+
### Module Loading
27+
- Use compiled files from `out/` directory when testing with node
28+
- Import paths: `const { Class } = require('../out/vs/path/to/module.js')`
29+
- ES modules require `.mjs` extension or package.json type modification
30+
31+
### Test Location
32+
- Don't add tests to the wrong test suite (e.g., adding to end of file instead of inside relevant suite)
33+
- Look for existing test patterns before creating new structures
34+
- Use `describe` and `test` consistently with existing patterns
35+
36+
## Investigation Shortcuts
37+
38+
### Finding Related Code
39+
1. **Semantic search first**: Use file search for general concepts
40+
2. **Grep for exact strings**: Use grep for error messages or specific function names
41+
3. **Follow imports**: Check what files import the problematic module
42+
4. **Check test files**: Often reveal usage patterns and expected behavior
43+
44+
### Build Optimization
45+
- Compilation takes ~2 minutes - do this once at start
46+
- Extensions compile separately - skip if not needed
47+
- Use incremental compilation for faster iteration
48+
49+
## File Structure Quick Reference
50+
51+
```
52+
src/vs/
53+
├── base/common/ # Core utilities (color.ts, etc.)
54+
├── editor/contrib/ # Editor features
55+
├── platform/ # Platform services
56+
└── workbench/ # Main UI components
57+
58+
test/ # Integration tests
59+
out/ # Compiled output
60+
scripts/ # Build and test scripts
61+
```

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,9 @@
181181
"*": "error",
182182
"ts": "warning",
183183
"eslint": "warning"
184+
},
185+
"chat.instructionsFilesLocations": {
186+
".github/instructions": true,
187+
".vscode": true
184188
}
185189
}

build/.cachesalt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-14T16:33:46.494Z
1+
2025-06-09T07:16:15.626Z

0 commit comments

Comments
 (0)