Skip to content

Commit 65e9b3f

Browse files
committed
Keep focus in toolwindow when autoscrolling to source, to match behaviour in find results (#676)
1 parent 2d73338 commit 65e9b3f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# CheckStyle-IDEA Changelog
33

4+
* **5.112.0** Fixed: Keep focus in tool window when scrolling result, matching find results behaviour (#676).
45
* **5.112.0** New: Added Checkstyle 11.1.0.
56
* **5.111.1** Fixed: Removed scope check when enabling scan current file button to improve performance (#675).
67
* **5.111.1** New: Add keyboard shortcuts for next/previous result (#676).

src/main/java/org/infernus/idea/checkstyle/toolwindow/CheckStyleToolWindowPanel.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ private void scrollToError(final TreePath treePath) {
331331

332332
final FileEditorManager fileEditorManager = FileEditorManager.getInstance(project);
333333
ApplicationManager.getApplication().invokeLater(() -> {
334-
final FileEditor[] editor = fileEditorManager.openFile(
335-
virtualFile, true);
334+
final FileEditor[] editor = fileEditorManager.openFile(virtualFile, false);
336335

337336
if (editor.length > 0 && editor[0] instanceof TextEditor) {
338337
final LogicalPosition problemPos = new LogicalPosition(

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<change-notes>
2626
<![CDATA[
2727
<ul>
28+
<li>5.112.0: Fixed: Keep focus in tool window when scrolling result, matching find results behaviour (#676).</li>
2829
<li>5.112.0: New: Added Checkstyle 11.1.0.</li>
2930
<li>5.111.1: Fixed: Removed scope check when enabling scan current file button to improve performance (#675).</li>
3031
<li>5.111.1: New: Add keyboard shortcuts for next/previous result (#676).</li>

0 commit comments

Comments
 (0)