PROBLEMS panel: Show active file on top
The PROBLEMS panel often shows many files. It would be greatly useful to show the current active file on top so users won't have to scroll (sometimes considerably) to get to the current file.
I believe the active file is always revealed in the problems view, is not it happening? If not, can you please share the steps you are following to reproduce the issue?
Errors are generated from multiple sources like vscode, spelling, eslint, stylelist, htmlhint,... etc When you click the bottom bar to open the problems, the errors belonging to the active file is not always the first file in the file list.
Here is a screenshot
- Active file is
menus.js - Problems is listing
options.css,about.html... on top
It seems to work for me except that, we wont show the active file on the top instead we reveal it in the problems view which means if the active file is not seen then it will be shown. Are not you seeing this behaviour too?
As mentioned, the idea is to avoid having to look for the file. At the moment, after opening the PROBLEMS panel, I often have to scroll to look for the issues relating to the active file, as shown in the screenshot.
Possible solutions:
- Show the active file on top
- Auto-scroll to the active file
Auto-scroll to the active file
This is what the current behaviour is. If you are not seeing this behaviour, please provide steps to repro.
If you are not seeing this behaviour
The behaviour is not observed
please provide steps to repro.
Already explained...
Ubuntu 24.04
- Open VC Code project with many files
- Display many files (e.g. I have 35+ tabs open)
- Many files should have errors to report (spelling, ESLint, StyleLint, HTMLHint, etc)
- Open Problems bar
- Change the active files by clicking the tabs
- Observe that the errors relating to the active files are not always displayed on top OR scrolled to
Open VC Code project with many files
Do you mean VS Code project?
Display many files (e.g. I have 35+ tabs open)
Can you please be specific about the files to open and probably reduce it to the smallest number with which we can reproduce the issue?
Many files should have errors to report (spelling, ESLint, StyleLint, HTMLHint, etc) When I open VS Code project and when I open many files, I do not see any errors in the problems tab. So it would be helpful if you be specific with what files to open and what extensions you have installed
Do you mean VS Code project?
I am a browser extension developer so I open all the files included in an extension which can become 50+.
Can you please be specific about the files to open and probably reduce it to the smallest number with which we can reproduce the issue?
That is the whole point. There must be many files with many errors. Otherwise, if there are 2 files, opening the problems panel wont result in files going way down in the panel that would require a lot of scrolling.
I am sorry that this information is not helpful to reproduce. I would request to share following
- a link to the project in which this can be reproduced
- steps to set up say what extensions should be installed etc
- steps to reproduce
STR is as previously mentioned. The online project doesn’t have any errors (already fixed) to use for STR.
Hey @sandy081, this issue might need further attention.
@erosman, you can help us out by closing this issue if the problem no longer exists, or adding more information.
@erosman, you can help us out by closing this issue if the problem no longer exists, or adding more information.
The problem still exits.
I would request to share following information - https://github.com/microsoft/vscode/issues/241734#issuecomment-2753789677
- a link to the project in which this can be reproduced
Project is not online
steps to set up say what extensions should be installed etc
brunnerh.insert-unicode dbaeumer.vscode-eslint george-alisson.html-preview-vscode htmlhint.vscode-htmlhint mikeburgh.xml-format mitchdenny.ecdc mkxml.vscode-filesize peterfh.linesinfostatusbar rcore.rcore-unused-css-classes shalimski.swapdiff streetsidesoftware.code-spell-checker stylelint.vscode-stylelint uctakeoff.vscode-counter yatki.vscode-surround
steps to reproduce
- Open multiple files with multiple errors
- Open problems panels
- The active file is not at the top and/or visible