feat(datagrip): migrate from LSP4IJ to native CLI integration
This commit is contained in:
@@ -15,27 +15,27 @@ const (
|
||||
// TextFix is a byte-range replacement that can be applied to the source SQL.
|
||||
// Replace src[Offset:End] with New. An insertion has Offset == End.
|
||||
type TextFix struct {
|
||||
Offset int // byte offset in source (inclusive)
|
||||
End int // byte offset in source (exclusive)
|
||||
New string // replacement text
|
||||
Title string // short description shown in editor UI
|
||||
Offset int `json:"offset"` // byte offset in source (inclusive)
|
||||
End int `json:"end"` // byte offset in source (exclusive)
|
||||
New string `json:"new"` // replacement text
|
||||
Title string `json:"title"` // short description shown in editor UI
|
||||
}
|
||||
|
||||
// Diagnostic is a single lint finding.
|
||||
type Diagnostic struct {
|
||||
// RuleID is the stable identifier for the rule that produced this finding
|
||||
// (e.g. "MIG001").
|
||||
RuleID string
|
||||
RuleID string `json:"ruleId"`
|
||||
// Severity is the urgency level.
|
||||
Severity Severity
|
||||
Severity Severity `json:"severity"`
|
||||
// Message is a human-readable description of the finding.
|
||||
Message string
|
||||
Message string `json:"message"`
|
||||
// File is the path to the source file, or "" for stdin.
|
||||
File string
|
||||
File string `json:"file"`
|
||||
// Line is the 1-based line number of the finding.
|
||||
Line int
|
||||
Line int `json:"line"`
|
||||
// Col is the 1-based column number of the finding.
|
||||
Col int
|
||||
Col int `json:"col"`
|
||||
// Fix is non-nil when an autofix is available for this diagnostic.
|
||||
Fix *TextFix
|
||||
Fix *TextFix `json:"fix,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user