struct

Scry::PublishDiagnostic

Inherits Struct / Value / Object

Constants

ALL_FILES_WITH_DIAGNOSTIC = {} of String => Array(String)

Store all groups of files that have received some diagnostic, Useful to clean diagnostics after code changes. Each group depends on the file that generated the diagnostic and can be cleared just by that file.

Constructors

new(workspace : Workspace, uri : String)
Source

Instance methods

clean(uri = @uri)
Source
from(ex) : Array(LSP::Protocol::NotificationMessage)
Source
full_clean

Reset all diagnostics in the current project If the computed set is empty it has to push the empty array to clear former diagnostic See: https://microsoft.github.io/language-server-protocol/specification#textDocument_publishDiagnostics

Source