AdeAttwood / LsifTools

CLI tool for interacting with a LSIF index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSIF Tools

CLI tool for interacting with a LSIF index

Install

TODO

Generating an index

The easiest way to generate an index is with sourcegraphs scip tooling. You can see a fill list of indexers here. Youi will need to install an indexer and the scip cli tool for converting your index to lsif

# Run the indexer
scip-typescript index

# Convert your index
scip convert

This will give you a dump.lsif that you can feed in to this tool

Usage

Right now this is still early days, there is only one command unused-definitions. This will find all of the definitions in an index that has no references, in other words dead code.

lsif-tools unused-definitions \
    -d ~/path/to/dump.lsif \
    -f ~/path/to/file-one.ts ~/path/to/file-two.ts

About

CLI tool for interacting with a LSIF index


Languages

Language:TypeScript 98.2%Language:JavaScript 1.8%