File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -779,8 +779,11 @@ func (f *file) appendAnnotations(source string, annotations []bufanalysis.FileAn
779779 endLocation := f .file .InverseLocation (annotation .EndLine (), annotation .EndColumn (), positionalEncoding )
780780 protocolRange := reportLocationsToProtocolRange (startLocation , endLocation )
781781 f .diagnostics = append (f .diagnostics , protocol.Diagnostic {
782- Range : protocolRange ,
783- Code : annotation .Type (),
782+ Range : protocolRange ,
783+ Code : annotation .Type (),
784+ CodeDescription : & protocol.CodeDescription {
785+ Href : protocol .URI ("https://buf.build/docs/lint/rules/#" + strings .ToLower (annotation .Type ())),
786+ },
784787 Severity : protocol .DiagnosticSeverityWarning ,
785788 Source : source ,
786789 Message : annotation .Message (),
You can’t perform that action at this time.
0 commit comments