This extension reads a scope.txt file at the root of your workspace and decorates files and folders listed (or children of listed folders) with a badge in the Explorer.
- Automatic Decoration: Scans paths in
scope.txtand adds a ✓ badge (InScope) next to matching items. - Live Updates: Watches
scope.txtfor changes and refreshes badges on-the-fly—no reload needed. - Path Normalization: Supports both Windows (
\) and POSIX (/) separators inscope.txt.
- Clone or copy this extension into a folder.
- Install dependencies & compile:
npm install npm run compile
- Package into a
.vsix(requiresvsce):npm install -g vsce vsce package
- Install the VSIX:
code --install-extension inscope-indicator-0.0.1.vsix
- Reload or launch VSCode (F5) and open a workspace with a
scope.txtat its root.
- Create a
scope.txtfile at the root of your workspace. - Add relative paths (one per line) to files or folders you want marked:
src/app.ts assets/images config/**/*.json
- Save the file—badges will appear/refresh automatically.
- Exact files:
src/index.js - Folders:
src/components - Nested children: Any file/folder under listed folder will inherit the badge.
Note: Glob patterns (e.g.
**/*.ts) are not supported yet.
- Badge character: Currently a ✓. Change it in
src/extension.tsunderprovideFileDecoration. - Tooltip: Modify the
tooltipproperty to your preferred text. - SVG Icons: For full custom icons, consider implementing a custom Tree View instead of using
FileDecorationProvider.
- If badges don’t refresh on save:
- Ensure
scope.txtis in the workspace root. - Check console output in the
Extension Development Hostfor errors.
- Ensure
- Fork the repo
- Create a branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add YourFeature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
MIT ©
Enjoy decorating your project!