sourcegraph / go-langserver

Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)
https://sourcegraph.com
MIT License
1.17k stars 89 forks source link

Fix incorrect URI rewrite logic #353

Closed chrismwendt closed 5 years ago

chrismwendt commented 5 years ago

Previously, URIs would be rewritten by finding the first dep that is a prefix by character of the URI's path. This changes it to prefix by path component to avoid considering kubernetes/api a prefix of kubernetes/apimachinery.

Fixes https://github.com/sourcegraph/sourcegraph/issues/139