Skip to content

Don't send active location changes to DTD for anything that's not a real editor - #6104

Merged
DanTup merged 3 commits into
masterfrom
filter-non-editor-uris-to-dtd
Jun 29, 2026
Merged

DanTup merged 3 commits into
masterfrom
filter-non-editor-uris-to-dtd

Conversation

@DanTup

@DanTup DanTup commented Jun 29, 2026

Copy link
Copy Markdown
Member

Fixes #6102

@DanTup DanTup added this to the v3.138.0 milestone Jun 29, 2026
@DanTup DanTup added is bug fix in dtd Relates to integration with the Dart Tooling Daemon labels Jun 29, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request modifies src/extension/dart/tooling_daemon.ts to filter out non-editor tabs (like output panes or test diffs) before sending active location updates. The reviewer identified a performance bottleneck, noting that this synchronous tab traversal runs on every keystroke before debouncing, and recommended moving the check inside the debounced function. Additionally, the reviewer pointed out a TypeScript compilation error due to a missing type predicate in the filter, providing a code suggestion to resolve both issues.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/extension/dart/tooling_daemon.ts Outdated
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.08%. Comparing base (3e5bd0b) to head (3fa5bea).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6104      +/-   ##
==========================================
+ Coverage   71.02%   71.08%   +0.05%     
==========================================
  Files         169      169              
  Lines       12835    12844       +9     
  Branches     2556     2557       +1     
==========================================
+ Hits         9116     9130      +14     
+ Misses       3232     3227       -5     
  Partials      487      487              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DanTup
DanTup merged commit 2f1dfbc into master Jun 29, 2026
25 checks passed
@DanTup
DanTup deleted the filter-non-editor-uris-to-dtd branch July 15, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in dtd Relates to integration with the Dart Tooling Daemon is bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-file URIs should not be sent to DTD as active location changes

1 participant