We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35668ca commit 2adfdc0Copy full SHA for 2adfdc0
private/buf/buflsp/symbol.go
@@ -174,8 +174,9 @@ func (s *symbol) FormatDocs(ctx context.Context) string {
174
switch s.kind.(type) {
175
case *imported:
176
imported, _ := s.kind.(*imported)
177
- // Provide a preview of the imported file.
178
- return fmt.Sprintf("```proto\n%s\n```", imported.file.file.Text())
+ // Show the path to the file on disk, which is similar to how other LSP clients treat hovering
+ // on an import file.
179
+ return imported.file.file.Path()
180
case *tag:
181
plural := func(i int) string {
182
if i == 1 {
0 commit comments