ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
A feature that allows users to record/capture their "expected suggestion" when a Next Edit Suggestion (NES) was rejected or failed to appear. The captured data is saved in .recording.w.json format (compatible with stest infrastructure) for analysis and model improvement.
Add this setting to your VS Code settings.json:
{
// Enable the capture feature
"github.copilot.chat.advanced.inlineEdits.recordExpectedEdit.enabled": true
}That's it! Auto-capture on rejection is enabled by default. To disable it (you can still capture manually via the Command Palette):
{
"github.copilot.chat.advanced.inlineEdits.recordExpectedEdit.onReject": false
}When NES shows a wrong suggestion: 1. Reject the suggestion (press Esc or continue typing) 2. If onReject is enabled, capture mode starts automatically 3. Type the code you *expected* NES to suggest 4. Press Cmd+Enter (Mac) / Ctrl+Enter (Windows/Linux) to save, or Esc to cancel
When NES didn't appear but should have: 1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run "Copilot: Record Expected Edit (NES)" 2. Type the code you expected NES to suggest 3. Press Cmd+Enter / Ctrl+Enter to save
> Tip: To indicate that *no* edit was expected (i.e. the rejection was correct), press Cmd+Enter / Ctrl+Enter without making any edits.
Once you've captured some edits: 1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) 2. Run "Copilot: Submit NES Captures" 3. Review the files to be included (you can exclude sensitive files) 4. Click Submit Feedback to create a PR
| Action | Keybinding | |--------|------------| | Start capture manually | Command Palette → Copilot: Record Expected Edit (NES) | | Save capture | Cmd+Enter / Ctrl+Enter | | Save as "no edit expected" | Cmd+Enter / Ctrl+Enter with no edits made | | Cancel capture | Esc |
| Command | Description | |---------|-------------| | Copilot: Record Expected Edit (NES) | Start a capture session | | Copilot: Submit NES Captures | Upload feedback to internal repo |
onReject setting is enabled)When capture mode is active: 1. An animated status bar indicator shows: "NES CAPTURE MODE ACTIVE" (with an error background for visibility). Hovering it reveals the available keybindings. 2. Type your expected edit naturally in the editor (Enter inserts a newline as usual) 3. Press Cmd+Enter / Ctrl+Enter to save (saving with no edits records "no edit expected"), or Esc to cancel
Recordings are stored in your workspace under .copilot/nes-feedback/:
capture-<timestamp>.recording.w.json — The edit recordingcapture-<timestamp>.metadata.json — Context about the capture---
| Command ID | Description | |------------|-------------| | github.copilot.nes.captureExpected.start | Start capture manually | | github.copilot.nes.captureExpected.confirm | Confirm and save | | github.copilot.nes.captureExpected.abort | Cancel capture | | github.copilot.nes.captureExpected.submit | Submit to microsoft/copilot-nes-feedback |
#### State Management The capture controller maintains minimal state:
{
active: boolean;
startBookmark: DebugRecorderBookmark;
endBookmark?: DebugRecorderBookmark;
startDocumentId: DocumentId;
startTime: number;
trigger: 'rejection' | 'manual';
originalNesMetadata?: {
requestUuid: string;
providerInfo?: string;
modelName?: string;
endpointUrl?: string;
suggestionText?: string;
// [startLine, startCharacter, endLine, endCharacter]
suggestionRange?: [number, number, number, number];
documentPath?: string;
};
}The capture flow leverages DebugRecorder, which already tracks all document edits automatically—no custom event listeners or manual diff computation needed.
1. Start Capture: Create a bookmark in DebugRecorder, store the current document ID, set context key copilotNesCaptureMode to enable keybindings, and show status bar indicator.
2. User Edits: User types their expected edit naturally in the editor. DebugRecorder automatically tracks all changes in the background.
3. Confirm Capture: Create an end bookmark, extract the log slice between start/end bookmarks, filter for edits on the target document, compose them into a single nextUserEdit, and save to disk.
4. Abort/Cleanup: Clear state, reset context key, and dispose status bar item.
See ExpectedEditCaptureController in vscode-node/components/expectedEditCaptureController.ts for the full implementation.
#### Location Recordings are stored in the first workspace folder under the .copilot/nes-feedback/ directory:
<workspaceFolder>/.copilot/nes-feedback/capture-<timestamp>.recording.w.json2025-12-04T14-30-45).copilot/nes-feedback/capture-2025-12-04T14-30-45.recording.w.jsonEach recording generates two files: 1. Recording file: capture-<timestamp>.recording.w.json - Contains the log and edit data 2. Metadata file: capture-<timestamp>.metadata.json - Contains capture context and timing
#### Format Matches existing .recording.w.json structure used by stest infrastructure:
{
"log": [
{
"kind": "header",
"repoRootUri": "file:///workspace",
"time": 1234567890,
"uuid": "..."
},
{
"kind": "documentEncountered",
"id": 0,
"relativePath": "src/foo.ts",
"time": 1234567890
},
{
"kind": "setContent",
"id": 0,
"v": 1,
"content": "...",
"time": 1234567890
},
...
],
"nextUserEdit": {
"relativePath": "src/foo.ts",
"edit": [
[876, 996, "replaced text"],
[1522, 1530, "more text"]
]
}
}#### Metadata File A metadata file is saved alongside each recording with capture context:
{
"captureTimestamp": "2025-11-19T...", // ISO timestamp when capture started
"trigger": "rejection", // How capture was initiated: 'rejection' or 'manual'
"durationMs": 5432, // Time between start and confirm in milliseconds
"noEditExpected": false, // True if user confirmed without making edits
"originalNesContext": { // Metadata from the rejected NES suggestion (if any)
"requestUuid": "...", // Unique ID of the NES request
"providerInfo": "...", // Source of the suggestion (e.g., 'provider', 'diagnostics')
"modelName": "...", // AI model that generated the suggestion
"endpointUrl": "...", // API endpoint used for the request
"suggestionText": "...", // The actual suggested text that was rejected
"suggestionRange": [10, 0, 15, 20] // [startLine, startChar, endLine, endChar] of suggestion
}
}| Scenario | Behavior | |----------|----------| | Multiple rapid rejections | Only one capture active at a time; subsequent rejections ignored | | Document closed | Capture automatically aborted | | No edits made | Valid feedback! Saved with noEditExpected: true (indicates the rejection was correct) | | Large edits | DebugRecorder handles size limits automatically |
When you run "Copilot: Submit NES Captures":
1. All captures from .copilot/nes-feedback/ are collected 2. A preview dialog shows which files will be included 3. You can exclude specific files if needed 4. A pull request is created in microsoft/copilot-nes-feedback
Sensitive files are automatically excluded from submissions:
settings.json, launch.json).npmrc, .env, .gitconfig, etc.).pem, .key, id_rsa, etc.).aws/, .ssh/, .gnupg/)Requirements: GitHub authentication with repo access to microsoft/copilot-nes-feedback
---
.stest.ts wrapper file automatically