Sha256: 0ed228f95b5688211f245d87e64e4a801121e163d9b4580abac452d670a7a0d1
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
# typed: true # 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.4 | lib/ruby_lsp/requests/support/syntax_error_diagnostic.rb |