object88 / langd

A Language Server Protocol implementation in Go for Go
MIT License
7 stars 0 forks source link

Set expectation around searching for usages #8

Open object88 opened 6 years ago

object88 commented 6 years ago

In the existing VSCode, subdirectories of imported packages are also scanned for usages. This would imply a change in AST loading; langd would have to load complete directory structures for imports, not just the imports themselves.

This is true for non-vendor'ed imports.

Example, if github.com/object88/immutable is imported, and VSCode searches for references to immutable.IntToStringHashmap, references in github.com/object88/test/hashmap are also revealed.

object88 commented 6 years ago

Might make AST search depth an option for the server.