Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Gate KeeperNew to Visual Studio Code? Get it now.
Gate Keeper

Gate Keeper

Yaniv Holder

|
76 installs
| (3) | Free
An extension to handle Feature or Change gates
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Gate Keeper

Overview

Gate Keeper is VS code extension that helps with development gates in the code. Currently support only TypeScript.

Consent

When running GateKeeper, usage and error logs will be collected and sent to Microsoft. By using this extension, you consent that we record your:

  1. Microsoft User ID
  2. The Root Directory of your project
  3. Name of your Removed Gate
  4. Any additional logs that could be used to track errors and unexpected behavior.

We thank you for your consent, and assure you the the information we collect will be used to help improve the extension.

Features

In this section we will cover everything that Gate Keeper VSCode Extension provides to the user and give instructions on how to use all of its features.

Removing a gate

With this extension you can safely remove a gate from your code. This can be done with a Gate Keeper command or from the extension side bar view

Supported scenarios:

All scenarios are supporting not (!) before the expression

Scenario Before After
if / else
if (isGateEnabled("GateName")) {
  // option 1
} else {
  // options 2
}

^^^^^

// option 1

^^^^^

conditional expression
const a = isGateEnabled("GateName") ? 1 : 2;

^^^^^

const a = 1;

^^^^^

and expression
if (isGateEnabled("GateName") && bool) {
  // option 1
} else {
  // options 2
}

^^^^^

if (bool) {
  // option 1
} else {
  // options 2
}

^^^^^

or expression
if (isGateEnabled("GateName") || bool) {
  // option 1
} else {
  // options 2
}

^^^^^

// option 1

^^^^^

Gates stores in non exported variables
const gate = isGateEnabled("GateName");
const gate2 = gate;
if (gate2) {
  // option 1
} else {
  // options 2
}

^^^^^

// option 1

^^^^^

Gates stores in private property
class c {
  private gate = isGateEnabled("GateName");

  public foo() {
    if (this.gate) {
      // option 1
    } else {
      // options 2
    }
  }
}

^^^^^

class c {
  public foo() {
    // option 1
  }
}

^^^^^

Extension Settings

Currently, there are no extension settings.

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