Bumping k8s version to 1.13.0-beta.1
This commit is contained in:
8
vendor/golang.org/x/tools/internal/lsp/position.go
generated
vendored
8
vendor/golang.org/x/tools/internal/lsp/position.go
generated
vendored
@@ -24,11 +24,11 @@ func fromProtocolLocation(v *source.View, loc protocol.Location) (source.Range,
|
||||
}
|
||||
|
||||
// toProtocolLocation converts from a source range back to a protocol location.
|
||||
func toProtocolLocation(v *source.View, r source.Range) protocol.Location {
|
||||
tokFile := v.Config.Fset.File(r.Start)
|
||||
file := v.GetFile(source.ToURI(tokFile.Name()))
|
||||
func toProtocolLocation(fset *token.FileSet, r source.Range) protocol.Location {
|
||||
tokFile := fset.File(r.Start)
|
||||
uri := source.ToURI(tokFile.Name())
|
||||
return protocol.Location{
|
||||
URI: protocol.DocumentURI(file.URI),
|
||||
URI: protocol.DocumentURI(uri),
|
||||
Range: toProtocolRange(tokFile, r),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user