struct Scry::PublishDiagnostic

Defined in:

scry/publish_diagnostic.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(workspace : Workspace, uri : String) #

[View source]

Instance Method Detail

def clean(uri = @uri) #

[View source]
def from(ex) : Array(LSP::Protocol::NotificationMessage) #

[View source]
def 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


[View source]