MCPcopy Index your code
hub / github.com/antfu/vscode-pair-diff

github.com/antfu/vscode-pair-diff @v0.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.4 ↗ · + Follow
18 symbols 39 edges 9 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Pair Diff

Visual Studio Marketplace Version

Pair files for quick diffing.

Configrations

pair-diff.patterns

An array for patterns to match files in pairs. For example:

{
  "pair-diff.patterns": [
    {
      "source": "./test/*/input.ts",
      "target": "<dir>/output.ts"
    },
    {
      "source": "./test/input/*.*",
      "target": "<dir>/../output/<basename>"
    }
  ]
}

The source option supports glob patterns, and the target option supports the following placeholders:

  • <dir> / <dirname>: the directory of the source file
  • <base> / <basename>: the filename of the source file, with extension
  • <name>: the basename of the source file without extension
  • <ext>: the extension name of the source file

Sponsors

License

MIT License © 2022 Anthony Fu

Extension points exported contracts — how you extend this code

MatchPattern (Interface)
(no doc)
src/types.ts
ResolvedMatchPattern (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

findMatchedTargets
called by 3
src/context.ts
toArray
called by 3
src/utils.ts
readConfig
called by 2
src/context.ts
updateEnv
called by 2
src/context.ts
slash
called by 2
src/utils.ts
normalizePatterns
called by 1
src/utils.ts
activate
called by 0
src/index.ts
deactivate
called by 0
src/index.ts

Shape

Method 7
Function 5
Class 4
Interface 2

Languages

TypeScript100%

Modules by API surface

src/context.ts6 symbols
src/codelens.ts5 symbols
src/utils.ts3 symbols
src/types.ts2 symbols
src/index.ts2 symbols

For agents

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

⬇ download graph artifact