Bumping k8s version to 1.13.0-beta.1
This commit is contained in:
23
vendor/golang.org/x/tools/internal/lsp/protocol/printers.go
generated
vendored
23
vendor/golang.org/x/tools/internal/lsp/protocol/printers.go
generated
vendored
@@ -17,9 +17,9 @@ import (
|
||||
)
|
||||
|
||||
func (p Position) Format(f fmt.State, c rune) {
|
||||
fmt.Fprintf(f, "%d", int(p.Line))
|
||||
fmt.Fprintf(f, "%d", int(p.Line)+1)
|
||||
if p.Character >= 0 {
|
||||
fmt.Fprintf(f, ":%d", int(p.Character))
|
||||
fmt.Fprintf(f, ":%d", int(p.Character)+1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ func (r Range) Format(f fmt.State, c rune) {
|
||||
case r.Start == r.End || r.End.Line < 0:
|
||||
fmt.Fprintf(f, "%v", r.Start)
|
||||
case r.End.Line == r.Start.Line:
|
||||
fmt.Fprintf(f, "%v¦%d", r.Start, int(r.End.Character))
|
||||
fmt.Fprintf(f, "%v¦%d", r.Start, int(r.End.Character)+1)
|
||||
default:
|
||||
fmt.Fprintf(f, "%v¦%v", r.Start, r.End)
|
||||
}
|
||||
@@ -37,3 +37,20 @@ func (r Range) Format(f fmt.State, c rune) {
|
||||
func (l Location) Format(f fmt.State, c rune) {
|
||||
fmt.Fprintf(f, "%s:%v", l.URI, l.Range)
|
||||
}
|
||||
|
||||
func (s DiagnosticSeverity) Format(f fmt.State, c rune) {
|
||||
switch s {
|
||||
case SeverityError:
|
||||
fmt.Fprint(f, "Error")
|
||||
case SeverityWarning:
|
||||
fmt.Fprint(f, "Warning")
|
||||
case SeverityInformation:
|
||||
fmt.Fprint(f, "Information")
|
||||
case SeverityHint:
|
||||
fmt.Fprint(f, "Hint")
|
||||
}
|
||||
}
|
||||
|
||||
func (d Diagnostic) Format(f fmt.State, c rune) {
|
||||
fmt.Fprintf(f, "%v:%v from %v at %v: %v", d.Severity, d.Code, d.Source, d.Range, d.Message)
|
||||
}
|
||||
|
Reference in New Issue
Block a user