Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codeowners Freeze NotificationNew to Visual Studio Code? Get it now.
Codeowners Freeze Notification

Codeowners Freeze Notification

Amitai Turkel

|
5 installs
| (0) | Free
Notify when enter files under code freeze ownership rules
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🔒 CODEOWNERS Watcher for VS Code

A lightweight VS Code extension that scans your project for .gitlab/CODEOWNERS files within app/ folders and warns you whenever you open a file owned or frozen according to CODEOWNERS. This helps prevent accidental edits in restricted or legacy areas of your codebase.


✨ Features

  • Automatically detects CODEOWNERS files inside .gitlab folders within app/ directories.
  • Recursively searches up to 5 levels above and below the workspace root to find relevant CODEOWNERS.
  • Parses and monitors paths owned by @epg-restricted/legacy-approvers.
  • Warns when you open any file or folder tracked by CODEOWNERS.
  • Designed to work smoothly with monorepos and nested workspace structures.

🚀 How It Works

  1. On activation, searches for the closest .gitlab/CODEOWNERS file inside an app/ directory located within 5 levels up or down from the workspace root.
  2. Parses the CODEOWNERS file and filters entries owned by @epg-restricted/legacy-approvers.
  3. Builds an internal list of absolute paths from these entries.
  4. Listens for file open events and shows a warning if the opened file matches any monitored paths.

📦 Installation

From the VS Code Marketplace

Search for CODEOWNERS Watcher and click Install.

From a .vsix file

  1. Download or build the .vsix package:

    vsce package
    
  2. Install the extension manually:

    code --install-extension codeowners-watcher-0.1.0.vsix
    

🛠️ Usage

  1. Open a workspace with a folder structure like:

    /your-project/
      app/
        .gitlab/
          CODEOWNERS
    
  2. Open any file in the editor.

  3. If the file is owned by @epg-restricted/legacy-approvers, a warning message will appear.


📁 Example CODEOWNERS Entries

# Only entries with @epg-restricted/legacy-approvers trigger warnings
/src/frozen-folder/ @epg-restricted/legacy-approvers
/config/settings.json @epg-restricted/legacy-approvers

🙋‍♂️ Author

Amitai Turkel – github.com/amitaiturkel


Made with ❤️ to help developers respect CODEOWNERS and keep legacy code safe.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft