Skip to content

fix: set isNESForAnotherDoc correctly for cross-file NES#310794

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/ready-mandrill
Apr 16, 2026
Merged

fix: set isNESForAnotherDoc correctly for cross-file NES#310794
ulugbekna merged 1 commit intomainfrom
ulugbekna/ready-mandrill

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

Previously isNESForAnotherDoc was only set inside addNotebookTelemetry, so non-notebook cross-file NES always reported false.

  • Set the flag on the main edit path for all cases (notebook and non-notebook)
  • Set the flag on the jump-to-position path when targetDocumentId differs
  • Set the flag and status 'noEdit:crossFileTargetNotFound' when cross-file target document is not found in the workspace
  • Remove redundant setIsNESForOtherEditor call from addNotebookTelemetry

Previously isNESForAnotherDoc was only set inside addNotebookTelemetry,
so non-notebook cross-file NES always reported false.

- Set the flag on the main edit path for all cases (notebook and non-notebook)
- Set the flag on the jump-to-position path when targetDocumentId differs
- Set the flag and status 'noEdit:crossFileTargetNotFound' when cross-file
  target document is not found in the workspace
- Remove redundant setIsNESForOtherEditor call from addNotebookTelemetry
Copilot AI review requested due to automatic review settings April 16, 2026 16:55
@ulugbekna ulugbekna enabled auto-merge (squash) April 16, 2026 16:55
@ulugbekna ulugbekna self-assigned this Apr 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: df871147 Current: 839e9f12

Changed (4)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after
editor/inlineCompletions/other/JumpToHint/Light
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes enhanced telemetry so isNESForAnotherDoc is correctly reported for cross-file Next Edit Suggestions (NES), not just for notebook cases, improving telemetry accuracy for editor-to-editor suggestions.

Changes:

  • Set isNESForAnotherDoc (setIsNESForOtherEditor) on the main edit path for both notebook and non-notebook scenarios.
  • Set isNESForAnotherDoc on the jump-to-position-only path when targetDocumentId differs from the current document.
  • When a cross-file target document can’t be resolved, set isNESForAnotherDoc and a dedicated status (noEdit:crossFileTargetNotFound), and remove the redundant notebook-only setter.
Show a summary per file
File Description
extensions/copilot/src/extension/inlineEdits/vscode-node/inlineCompletionProvider.ts Ensures cross-file (and jump-only) NES telemetry correctly marks “other document” cases and records a specific status when the cross-file target cannot be found.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@ulugbekna ulugbekna merged commit d60ffdc into main Apr 16, 2026
30 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/ready-mandrill branch April 16, 2026 17:52
@vs-code-engineering vs-code-engineering bot added this to the 1.117.0 milestone Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants