mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -07:00
0bd3dbed90
In preparation for later changes to the implementation of the workspace Symbol method, we add the Symbol method to fake.Editor. This requires the definition of a number of associated fake types (editor-friendly, byte-offset-based versions of protocol UTF16-based types) for example fake.SymbolInformation and the types it references. We also implement a basic regtest for the Symbol method, exposing Symbol on regtest.Env like other LSP server methods. To aid with the writing of Symbol result assertions, we provide some helper functions to simplify the process of defining matches that are evaluated against the result set. Change-Id: If73b493e1e791c8201423a303af8041f5a15ccfc Reviewed-on: https://go-review.googlesource.com/c/tools/+/228121 Run-TryBot: Paul Jolly <paul@myitcv.org.uk> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
---|---|---|
.. | ||
codelens_test.go | ||
definition_test.go | ||
diagnostics_114_test.go | ||
diagnostics_test.go | ||
doc.go | ||
env_test.go | ||
env.go | ||
formatting_test.go | ||
generate_test.go | ||
reg_test.go | ||
runner.go | ||
serialization_test.go | ||
shared_test.go | ||
symbol_helper_test.go | ||
symbol_test.go | ||
unix_test.go | ||
wrappers.go |