Add PromptKit inspection commands
This commit is contained in:
@@ -143,6 +143,13 @@ func promptKitDiagnostics(scope string, sources []configkit.SourceInfo, records
|
||||
// Snapshot provider-owned slices before deferring their report to invocation.
|
||||
sources = append([]configkit.SourceInfo(nil), sources...)
|
||||
records = append([]configkit.Diagnostic(nil), records...)
|
||||
for index := range records {
|
||||
if records[index].Primary != nil {
|
||||
primary := *records[index].Primary
|
||||
records[index].Primary = &primary
|
||||
}
|
||||
records[index].Related = append([]configkit.Location(nil), records[index].Related...)
|
||||
}
|
||||
return []commandkit.Diagnostic{{
|
||||
Severity: severity,
|
||||
Write: func(writer io.Writer) error {
|
||||
|
||||
Reference in New Issue
Block a user