struct LSP::Message::PublishDiagnostics

Overview

Diagnostics notification are sent from the server to the client to signal results of validation runs.

Diagnostics are “owned” by the server so it is the server’s responsibility to clear them if necessary. The following rule is used for VS Code servers that generate diagnostics:

When a file changes it is the server’s responsibility to re-compute diagnostics and push them to the client. If the computed set is empty it has to push the empty array to clear former diagnostics. Newly pushed diagnostics always replace previously pushed diagnostics. There is no merging that happens on the client side.

Included Modules

Defined in:

lsp/message.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params : LSP::Message::PublishDiagnostics::Params = Params.new) #

[View source]

Class Method Detail

def self.method #

[View source]

Instance Method Detail

def jsonrpc : String #

def jsonrpc=(jsonrpc : String) #

def method : String #

def method=(method : String) #

def params : Params #

def params=(params : Params) #