Closed aarwurzer2 closed 3 years ago
Hi @aarwurzer2 ,
The extension relies on the language extension you have installed (in your case, some Python extension), to recognize and draw the separators for each symbol. If Separators is not working in some multi-root workspace scenario, I suppose the Python extension you use does not support multi-root Workspaces as well.
To be sure the Python extension is working properly, run the Go to Symbol
command, or take a look at the Outline panel on Explorer view. If you see symbols there, Separators should work as well, otherwise, it won't.
Hope this helps
@alefragnani
It sure helps! The tip with the command Go to Symbol
was useful in identifying the issue. So thanx for that!
My setup isn't anything particular and the extensions I'm using are the normal Microsoft supplied ones. So nothing out of the ordinary there. Tried also disabling all but the MS Python extensions - but nothing. Then I used your tip about using the command Go to Symbol
, which doesn't work, as it says The active text editor does not provide symbol information. Again, tried everything but to no avail: as soon as you add another folder to your current workspace, the command Go to Symbol
displays The active text editor does not provide symbol information - and once you get rid of that folder in your Workspace Symbols can be found again. And it appears to be linked to the Python extension.
So I went looking and apparently it is a bug - just not in your extension :) There is bug 7328 that exactly describes my behavior regarding Python and multi-root workspaces: issue with generating symbols in multi-root workspace. It's been going on for a while and more people are suffering from it. From the looks of it, they should be starting working on it. I've added my comment as well.
Again, thanks very much for pointing me in the direction of the command Go to Symbol
. As the bug is not in your extension, I guess we could close this one.
That's great to see you found the source of the issue.
I heard a few language extensions had issues with multi-root workspaces, but didn't know Python was one of them. MS is investing a lot on Python recently, so I guess multi-root support could be added soon.
Thank you
Environment/version
Steps to reproduce It appears that the extension is not working correctly when using files across different folders from a multi-root workspace setup. A multi-root workspace setup would be, when you've got different project folders in one workspace.
Setup files and folders first:
Create multi-root workspace
I've tried several test, to see what works and what not:
Behaviour in VS Code with a multi-root workspace:
Simplified project folder setup for multi-root workspace: