Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>License FilterNew to Visual Studio Code? Get it now.
License Filter

License Filter

Gg K

|
2 installs
| (0) | Free
Filter installed and Marketplace extensions by license (MIT, Apache-2.0, GPL, proprietary, unknown).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

License Filter

Filter the extensions you have installed, and pages of Marketplace or Open VSX results, by license. Every row shows the license the publisher shipped: an SPDX id such as MIT or Apache-2.0, a proprietary or custom-terms label, or Unknown when nothing recognizable is there.

The registries still cannot query by license. This extension reads the metadata, then the filters run on the rows it has loaded.

What you see

Installed: family chips, open-source and unknown toggles, and a license badge on each extension. Built-in extensions stay hidden until you include them.

Marketplace: search by extension name. A license chip keeps scanning later pages until the list fills or the scan budget runs out. Scan more pages continues that walk. With no license chip selected, Load more fetches the next page only.

Installed extensions with license badges in the Extension Development Host

Marketplace results with license badges in the Extension Development Host

The screenshots are files inside this extension (media/screenshot-installed.png and media/screenshot-marketplace.png). They are packaged in the VSIX. vsce is run with --no-rewrite-relative-links so it does not rewrite those paths to a git host.

Use

Open the License Filter icon in the Activity Bar, or run License Filter: Open from the Command Palette.

  • Installed lists your extensions. Include built-in adds the ones that ship with the editor.
  • Marketplace searches the registry in licenseFilter.registry (marketplace or openvsx). An empty search lists popular extensions. Permissive, copyleft, proprietary, open-source-only, and hide-unknown keep walking later pages (six pages at a time, then four more from Scan more pages), with a short pause between registry requests. Resolved licenses are stored on this machine and reused for the same search.
  • Family chips select permissive, weak copyleft, strong copyleft, proprietary, or unknown. More than one chip is a union.
  • Open source only keeps permissive and copyleft rows. Hide unknown drops rows with no recognizable license.
  • The text box matches display name, id, description, and license together. prettier mit keeps a Prettier row whose license is MIT.
  • Show in Extensions opens that extension in the Extensions view. Registry page opens the public listing. Terms appears when the license field is an https URL.
  • License Filter: Filter Installed by License is a quick pick of families and the license ids found on disk.

MIT OR GPL-3.0 is treated as permissive, because you can choose MIT. MIT AND GPL-3.0 is treated as strong copyleft. Apache-2.0 WITH LLVM-exception stays permissive and keeps the SPDX expression when the exception is on the SPDX exception list. MIT WITH Apache-2.0 is unknown, because Apache-2.0 is a license, not an exception. A URL in the license field, which is what GitHub Copilot publishes, is Custom terms in the proprietary family.

Where the license text comes from

  1. The license field in package.json (a string, { "type": "MIT" }, or the legacy licenses array).
  2. When that field is missing, unparseable, or SEE LICENSE IN …, the LICENSE file. Installed extensions are read from disk. Marketplace results use the gallery Microsoft.VisualStudio.Services.Content.License asset. Open VSX results use files.license.

A known SPDX id in package.json wins over a different header in the LICENSE file.

Settings

Setting Default What it does
licenseFilter.registry marketplace marketplace queries marketplace.visualstudio.com. openvsx queries open-vsx.org.

Limits

The labels are metadata plus a header sniff, not a legal opinion. A recognized WITH exception does not change the base license family. An exception that is not on the SPDX exception list makes that clause unknown. A license chip scans up to six registry pages (120 extensions) before it waits for Scan more pages. The name box filters rows already scanned and does not by itself walk the catalog. Resolved licenses and scanned rows are cached in global state.

Develop

npm install
npm test
npm run compile

Open this folder in VS Code and press F5 (Run Extension). That starts an Extension Development Host with the extension loaded. npm run watch rebuilds while you edit. The F5 launch config runs that watch task first.

npm test covers license parsing, SPDX WITH exceptions, LICENSE-file sniffing, filters, gallery payload parsing, the page walk, the rate limiter, and the on-disk license index. It does not download VS Code. To check the live Marketplace once:

LICENSE_FILTER_LIVE=1 npm test

That checks Prettier (MIT in package.json), PowerShell (SEE LICENSE plus an MIT license file), Copilot (a terms URL), and the C/C++ extension (Microsoft terms in the LICENSE asset).

Publish

Packaging and the Marketplace / Open VSX upload commands are in PUBLISHING.md in the repository. The publisher id is ggk.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft