Add support for LSIF Typed
Created by: olafurpg
Running src lsif upload
now converts LSIF Typed into LSIF Graph in the
following scenarios:
- When the provided
-file
flag matches the file extension ".lsif-typed" - When the provided
-file
flag points to a non-existent file, while the sibling*.lsif-typed
file exists.
Fixes https://github.com/sourcegraph/sourcegraph/issues/27405
Test plan
Manually tested the command locally.
❯ ~/dev/sourcegraph/src-cli/src lsif upload
ℹ️ Converting ./dump.lsif-typed into ./dump.lsif
💡 Inferred arguments
repo: github.com/sourcegraph/sourcegraph
commit: 91976dc8c72ce24876c10fa9fa1bd40a5f00e557
root:
file: dump.lsif
...
❯ ~/dev/sourcegraph/src-cli/src lsif upload -file dump.lsif-typed
ℹ️ Converting dump.lsif-typed into dump.lsif
💡 Inferred arguments
repo: github.com/sourcegraph/sourcegraph
commit: 91976dc8c72ce24876c10fa9fa1bd40a5f00e557
root:
file: dump.lsif
...