Class: LSP::FileEvent

Inherits:
LSPBase show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface FileEvent

/**
 * The file's uri.
 */
uri: DocumentUri;
/**
 * The change type.
 */
type: FileChangeType;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#typeObject

type: DocumentUri # type: FileChangeType



739
740
741
# File 'lib/lsp/lsp_protocol.rb', line 739

def type
  @type
end

#uriObject

type: DocumentUri # type: FileChangeType



739
740
741
# File 'lib/lsp/lsp_protocol.rb', line 739

def uri
  @uri
end

Instance Method Details

#from_h!(value) ⇒ Object



741
742
743
744
745
746
# File 'lib/lsp/lsp_protocol.rb', line 741

def from_h!(value)
  value = {} if value.nil?
  self.uri = value['uri'] # Unknown type
  self.type = value['type'] # Unknown type
  self
end