MCPcopy Index your code
hub / github.com/CodeZombieCH/vscode-gitignore

github.com/CodeZombieCH/vscode-gitignore @v0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
87 symbols 176 edges 16 files 10 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gitignore Extension for Visual Studio Code

An extension for Visual Studio Code that assists you in working with .gitignore files.

Features

  • Add local .gitignore file by pulling .gitignore templates from the github/gitignore repository
  • Language support for .gitignore files

Usage

Start command palette (with Ctrl+Shift+P or F1) and start typing Add gitignore

Settings

Visual Studio Code Settings

{
    // Number of seconds the list of `.gitignore` files retrieved from github will be cached
    "gitignore.cacheExpirationInterval": 3600
}

GitHub API Rate Limits

This extension makes API calls to the GitHub REST API which are subject to rate limits.

By default, requests sent to the GitHub REST API are unauthenticated. Although the rate limit for unauthenticated requests is low, this should usually not be an issue because of caching and the typical infrequent usage of this extension.

If you reach the rate limit (e.g. because you work inside a corporate network), the extension will ask you if you want to the Authenticaton Provider for GitHub. If you agree, the extension will use authenticated GitHub API calls, which come with a mich higher rate limit than unauthenticated calls.

Roadmap

v0.x

  • Implement logging accroding to best practices
  • Replace https-proxy-agent package by high level proxy-agent package
  • Switch to fetch API (requires vscode v1.82)
  • Further test and improve proxy support
  • Add unit tests with active proxy

Changelog

See CHANGELOG.md

License

See LICENSE

Credits

Icon based on the Git logo by Jason Long

Extension points exported contracts — how you extend this code

GitignoreProvider (Interface)
(no doc) [6 implementers]
src/interfaces.ts
CacheItemStore (Interface)
(no doc)
src/cache.ts
GitignoreQuickPickItem (Interface)
(no doc)
src/extension.ts
GithubRepositoryItem (Interface)
(no doc)
src/providers/github-gitignore-repository.ts
GitignoreTemplate (Interface)
(no doc)
src/interfaces.ts
GitignoreOperation (Interface)
(no doc)
src/interfaces.ts

Core symbols most depended-on inside this repo

get
called by 7
src/cache.ts
downloadToStream
called by 6
src/interfaces.ts
add
called by 4
src/cache.ts
getTemplates
called by 4
src/interfaces.ts
downloadGitignoreFile
called by 4
src/extension.ts
getAgent
called by 4
src/http-client.ts
createTmpTestDir
called by 4
src/test/utils.ts
getHeaders
called by 4
src/github/client.ts

Shape

Method 36
Class 26
Function 18
Interface 6
Enum 1

Languages

TypeScript100%

Modules by API surface

src/github/client.ts13 symbols
src/extension.ts13 symbols
src/cache.ts13 symbols
src/github/session.ts12 symbols
src/test/providers/github-gitignore.test.ts7 symbols
src/providers/github-gitignore-repository.ts7 symbols
src/interfaces.ts6 symbols
src/test/extension.test.ts5 symbols
src/providers/github-gitignore-api.ts5 symbols
src/http-client.ts3 symbols
esbuild.js2 symbols
src/test/utils.ts1 symbols

For agents

$ claude mcp add vscode-gitignore \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact