Skip to content

Commit 91872ad

Browse files
authored
Use ir.Symbol.FullName() for symbol information (#4162)
1 parent 85e8b3c commit 91872ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

private/buf/buflsp/symbol.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,11 @@ func (s *symbol) GetSymbolInformation() protocol.SymbolInformation {
281281
return protocol.SymbolInformation{}
282282
}
283283

284-
fullName := s.ir.FullName()
285-
name := fullName.Name()
284+
name := s.ir.FullName()
286285
if name == "" {
287286
return protocol.SymbolInformation{}
288287
}
289-
parentFullName := fullName.Parent()
288+
parentFullName := name.Parent()
290289
containerName := string(parentFullName)
291290

292291
location := protocol.Location{
@@ -323,7 +322,7 @@ func (s *symbol) GetSymbolInformation() protocol.SymbolInformation {
323322
isDeprecated = true
324323
}
325324
return protocol.SymbolInformation{
326-
Name: name,
325+
Name: string(name),
327326
Kind: kind,
328327
Location: location,
329328
ContainerName: containerName,

0 commit comments

Comments
 (0)