You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Navigating to class, show class in java project in the center #2868
I notced when I control click on a class/symbol to view its defintion. In "Java Projects" tree view, the class is always shown at the bottom. Would be nice to scroll it to the center.
Extension version: 1.13.0
VS Code version: Code - Insiders 1.75.0-insider (11238faea62d570d77afe6edfe05c8b732c44a2b, 2022-12-13T05:22:26.937Z)
OS version: Linux x64 6.1.3-1-default
Modes:
Sandboxed: Yes
I see this bug is marked upstream, so should someone from the team deal with this? The way I see it, you're missing a needed API, so it makes more sense for a team member to request this functionality to close the bug off.
I would not classify this is a "bug". A bug is something causes an expected crash or something broken, but in this case, you can still work with your project. Since our extension was never given the control of this behavior, things are working as expected. Rather, this is something you find that it is inconvenient to your user experience, like we mentioned, this is something that is out of our control and this the first time an user reported this. Therefore, I think the correct course of action is to directly report this issue to the VS Code repo
I mispoke :) ... I submitted another bug to which @jdneo said the plugin can't control the treeview, so I confused the two.
With respect to this "feature" request I will give your suggestion a try.
Activity
jdneo commentedon Jan 11, 2023
Unfortunately, the VS Code API does not allow extensions to control where should the node be displayed: https://github.com/microsoft/vscode/blob/6674e482a2aba74b5dd9e309cd35260e9acded6b/src/vscode-dts/vscode.d.ts#L10639.
rajinder-yadav commentedon Jan 11, 2023
Why can't vscode then show the node in the center as default? It doesn't need to be told.
jdneo commentedon Jan 11, 2023
IDK, it's not our decision. But I think it should be fine to file an issue at VS Code's repo for discussion.
nickzhums commentedon Jan 11, 2023
@rajinder-yadav feel free to raise this issue to https://github.com/microsoft/vscode as mentioned, the discussion belongs there as we don't have control over this behavior
rajinder-yadav commentedon Jan 11, 2023
I see this bug is marked upstream, so should someone from the team deal with this? The way I see it, you're missing a needed API, so it makes more sense for a team member to request this functionality to close the bug off.
nickzhums commentedon Jan 11, 2023
I would not classify this is a "bug". A bug is something causes an expected crash or something broken, but in this case, you can still work with your project. Since our extension was never given the control of this behavior, things are working as expected. Rather, this is something you find that it is inconvenient to your user experience, like we mentioned, this is something that is out of our control and this the first time an user reported this. Therefore, I think the correct course of action is to directly report this issue to the VS Code repo
rajinder-yadav commentedon Jan 11, 2023
I mispoke :) ... I submitted another bug to which @jdneo said the plugin can't control the treeview, so I confused the two.
With respect to this "feature" request I will give your suggestion a try.
rajinder-yadav commentedon Jan 11, 2023
I've opened a feature request: microsoft/vscode#171062
fbricon commentedon Feb 16, 2026
Closing as out-of-scope since the Java project view is provided by the Project Manager for Java extension, so tickets should be opened at https://github.com/Microsoft/vscode-java-dependency/issues.
The fact microsoft/vscode#171062 was closed as "Not planned" doesn't give me much hope it can be fixed though.