Skip to content

Activate content assist only when caret enters the viewer#2305

Merged
iloveeclipse merged 1 commit intoeclipse-platform:masterfrom
SougandhS:DetailPaneFocusIssue
Mar 4, 2026
Merged

Activate content assist only when caret enters the viewer#2305
iloveeclipse merged 1 commit intoeclipse-platform:masterfrom
SougandhS:DetailPaneFocusIssue

Conversation

@SougandhS
Copy link
Contributor

Fixes an issue where editing an expression in the Expressions view and pressing Ctrl/Cmd+Space caused the Detail Pane’s content assist to appear. The popup could not be dismissed normally and inserted no values when selected.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=543086

Content assist is now activated only when the caret moves inside the Detail Pane, preventing interference with the Expressions views and providing a more consistent UX.

Fixes : #2151

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

Test Results

 1 980 files  ±0   1 980 suites  ±0   1h 36m 0s ⏱️ - 1m 0s
 4 750 tests ±0   4 726 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 250 runs  ±0  14 068 ✅ ±0  182 💤 ±0  0 ❌ ±0 

Results for commit 6b927c3. ± Comparison against base commit 864bc70.

♻️ This comment has been updated with latest results.

@SougandhS SougandhS force-pushed the DetailPaneFocusIssue branch 2 times, most recently from f5f799f to 466d2b0 Compare January 13, 2026 05:02
@SougandhS SougandhS force-pushed the DetailPaneFocusIssue branch from 466d2b0 to 9d1780c Compare January 20, 2026 02:37
@SougandhS SougandhS force-pushed the DetailPaneFocusIssue branch from 9d1780c to 78194b5 Compare January 29, 2026 03:16
@trancexpress
Copy link
Contributor

@iloveeclipse I've validated the fix, content assist can no longer be invoked when editing a line in the Expressions view. I.e. we avoid showing non-sense suggestions there.

For the new code, it looks OK to me. Can you also review it?

Copy link

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

Adjusts content assist activation in the Variables/Expressions Detail Pane so the global Ctrl/Cmd+Space binding no longer incorrectly triggers the Detail Pane’s proposals while editing in the Expressions view.

Changes:

  • Defers activation of the content assist handler until user interaction in the Detail Pane (caret movement).
  • Deactivates the content assist handler when the Detail Pane’s text control loses focus.
  • Updates copyright header year.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SougandhS SougandhS force-pushed the DetailPaneFocusIssue branch from ee1ba62 to 3a8ef92 Compare March 3, 2026 07:45
@SougandhS
Copy link
Contributor Author

SougandhS commented Mar 3, 2026

unrelated test failure

Edit: failure image
image

@iloveeclipse
Copy link
Member

unrelated test failure

Which one? Please check if it is known or not, and report it if not known yet. We should not ignore sporadic test failures.

@SougandhS
Copy link
Contributor Author

unrelated test failure

Which one? Please check if it is known or not, and report it if not known yet. We should not ignore sporadic test failures.

raised : #2544

@iloveeclipse iloveeclipse force-pushed the DetailPaneFocusIssue branch from 3a8ef92 to d187188 Compare March 3, 2026 18:38
Content assist is now activated only when the caret moves inside the
Detail Pane, preventing interference with Expressions View and Variables
Views and enhancing the overall user experience.

Fixes : eclipse-platform#2151
@SougandhS SougandhS force-pushed the DetailPaneFocusIssue branch from d187188 to 6b927c3 Compare March 4, 2026 03:47
@SougandhS
Copy link
Contributor Author

Another unrrelated failure
image

see #2546

@iloveeclipse iloveeclipse merged commit 54d8cdd into eclipse-platform:master Mar 4, 2026
18 checks passed
@SougandhS
Copy link
Contributor Author

Thanks @iloveeclipse !

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.

[debug] Prevent or fix content assist in Expressions view

4 participants