105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# File 'lib/platformos_check/language_server/diagnostics_manager.rb', line 105
def delete_applied(diagnostics)
diagnostics = sanitize(diagnostics)
.select(&:correctable?)
previous_paths = paths(@latest_diagnostics)
diagnostics.each do |diagnostic|
delete(diagnostic.relative_path, diagnostic)
end
current_paths = paths(@latest_diagnostics)
(current_paths + previous_paths).map do |path|
[path, @latest_diagnostics[path] || []]
end.to_h
end
|