Skip to content

Commit 92e25f7

Browse files
authored
Correctly convert scip-typescript moniker scheme to npm (#30)
1 parent 5922ee0 commit 92e25f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bindings/go/scip/convert.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,9 @@ func (g *graph) emitMonikerVertex(symbolID string, kind string, resultSetID int)
282282
// NOTE: these special cases are needed since the Sourcegraph backend uses the "scheme" field of monikers where
283283
// it should use the "manager" field of packageInformation instead.
284284
switch symbol.Scheme {
285-
case "lsif-java":
286-
case "scip-java":
285+
case "scip-java", "lsif-java":
287286
scheme = "semanticdb"
288-
case "scip-typescript":
289-
case "lsif-typescript":
287+
case "scip-typescript", "lsif-typescript":
290288
scheme = "npm"
291289
}
292290
}

0 commit comments

Comments
 (0)