Working in a monorepo, sometimes with many teams, is a fanatastic experience. But, finding your way in the codebase can be a bit of a challenge. This is where this tool comes in. It will help you find the code you teams owns.
This first release of the extension is tailored to the needs of my company. But, I will try to make it more generic in the future. Feel free to open an issue if you have any suggestions.
From the contents of the code-owners file, the extension will filter the files in the explorer and show only the files that are owned by the team you are currently working in. It will also show the team that owns the file in the status bar. If you click on the team name in the status bar, you will be able to change the team that is used as a filter. The extension will also show the team that owns the file in the hover tooltip.
The format of the code owners file that is supported is the following:
If your monorepo is really large, and your teams owns a lot of different files and folders, the list of excluded files/folders from the file explorer is large, you might run into an issue in vscode with that.
There is an open issue that you can track here: https://github.com/microsoft/vscode/issues/869
It's been open a long time now :-| If any other extension is reporting an issue with an error message 'spawn ENAMETOOLONG', set the filter to All and reload the extension, or restart vscode. After that you can set the filter to the team you want to work with. This happens only when you have a lot of files/folders excluded from the explorer.