Sha256: e4f974f678640e89b69c0af8ab32052158f37fb514727190fe6bed04c219a5ac
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true module RubyLsp module Requests module Support class SyntaxErrorDiagnostic def initialize(edit) @edit = edit end def correctable? false end def to_lsp_diagnostic LanguageServer::Protocol::Interface::Diagnostic.new( message: "Syntax error", source: "SyntaxTree", severity: LanguageServer::Protocol::Constant::DiagnosticSeverity::ERROR, range: @edit[:range] ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lsp-0.0.3 | lib/ruby_lsp/requests/support/syntax_error_diagnostic.rb |