Skip to content

Commit

Permalink
fix cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihaopan committed Jul 1, 2024
1 parent 024a662 commit 14b3945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/hover.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"pls/proto/parser"
"pls/proto/view"
"strings"
"text/template"

Expand All @@ -29,7 +30,9 @@ func init() {
}

func Hover(ctx context.Context, req *defines.HoverParams) (result *defines.Hover, err error) {

if !view.IsProtoFile(req.TextDocument.Uri) {
return nil, nil
}
symbols, err := findSymbolDefinition(ctx, &req.TextDocumentPositionParams)
if err != nil {
return nil, err
Expand Down

0 comments on commit 14b3945

Please sign in to comment.