Module: LSP

Defined in:
lib/lsp/lsp_enums.rb,
lib/lsp/lsp_base.rb,
lib/lsp/lsp_types.rb,
lib/lsp/lsp_custom.rb,
lib/lsp/lsp_protocol.rb,
lib/lsp/lsp_protocol_progress.rb,
lib/lsp/lsp_protocol_declaration.rb,
lib/lsp/lsp_protocol_foldingrange.rb,
lib/lsp/lsp_protocol_colorprovider.rb,
lib/lsp/lsp_protocol_configuration.rb,
lib/lsp/lsp_protocol_implementation.rb,
lib/lsp/lsp_protocol_selectionrange.rb,
lib/lsp/lsp_protocol_typedefinition.rb,
lib/lsp/lsp_protocol_workspacefolders.rb,
lib/lsp/lsp_protocol_callhierarchy.proposed.rb,
lib/lsp/lsp_protocol_sematictokens.proposed.rb

Overview

rubocop:disable Naming/MethodName

Defined Under Namespace

Modules: CodeActionKind, CompletionItemKind, CompletionTriggerKind, DiagnosticSeverity, DocumentHighlightKind, FailureHandlingKind, FileChangeType, InsertTextFormat, MarkupKind, MessageType, ResourceOperationKind, SymbolKind, TextDocumentSaveReason, TextDocumentSyncKind Classes: ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, CallHierarchyClientCapabilities, CallHierarchyIncomingCall, CallHierarchyIncomingCallsParams, CallHierarchyItem, CallHierarchyOptions, CallHierarchyOutgoingCall, CallHierarchyOutgoingCallsParams, CallHierarchyPrepareParams, CallHierarchyRegistrationOptions, CallHierarchyServerCapabilities, CodeAction, CodeActionClientCapabilities, CodeActionContext, CodeActionOptions, CodeActionParams, CodeActionRegistrationOptions, CodeLens, CodeLensClientCapabilities, CodeLensOptions, CodeLensParams, CodeLensRegistrationOptions, Color, ColorInformation, ColorPresentation, ColorPresentationParams, Command, CompileNodeGraphResponse, CompletionClientCapabilities, CompletionContext, CompletionItem, CompletionList, CompletionOptions, CompletionParams, CompletionRegistrationOptions, ConfigurationClientCapabilities, ConfigurationItem, ConfigurationParams, CreateFile, CreateFileOptions, DeclarationClientCapabilities, DeclarationOptions, DeclarationParams, DeclarationRegistrationOptions, DefinitionClientCapabilities, DefinitionOptions, DefinitionParams, DefinitionRegistrationOptions, DeleteFile, DeleteFileOptions, Diagnostic, DiagnosticRelatedInformation, DidChangeConfigurationClientCapabilities, DidChangeConfigurationParams, DidChangeConfigurationRegistrationOptions, DidChangeTextDocumentParams, DidChangeWatchedFilesClientCapabilities, DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions, DidChangeWorkspaceFoldersParams, DidCloseTextDocumentParams, DidOpenTextDocumentParams, DidSaveTextDocumentParams, DocumentColorClientCapabilities, DocumentColorOptions, DocumentColorParams, DocumentColorRegistrationOptions, DocumentFormattingClientCapabilities, DocumentFormattingOptions, DocumentFormattingParams, DocumentFormattingRegistrationOptions, DocumentHighlight, DocumentHighlightClientCapabilities, DocumentHighlightOptions, DocumentHighlightParams, DocumentHighlightRegistrationOptions, DocumentLink, DocumentLinkClientCapabilities, DocumentLinkOptions, DocumentLinkParams, DocumentLinkRegistrationOptions, DocumentOnTypeFormattingClientCapabilities, DocumentOnTypeFormattingOptions, DocumentOnTypeFormattingParams, DocumentOnTypeFormattingRegistrationOptions, DocumentRangeFormattingClientCapabilities, DocumentRangeFormattingOptions, DocumentRangeFormattingParams, DocumentRangeFormattingRegistrationOptions, DocumentSymbol, DocumentSymbolClientCapabilities, DocumentSymbolOptions, DocumentSymbolParams, DocumentSymbolRegistrationOptions, ExecuteCommandClientCapabilities, ExecuteCommandOptions, ExecuteCommandParams, ExecuteCommandRegistrationOptions, FileEvent, FileSystemWatcher, FoldingRange, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeParams, FoldingRangeRegistrationOptions, FormattingOptions, Hover, HoverClientCapabilities, HoverOptions, HoverParams, HoverRegistrationOptions, ImplementationClientCapabilities, ImplementationOptions, ImplementationParams, ImplementationRegistrationOptions, InitializeError, InitializeResult, InitializedParams, LSPBase, Location, LocationLink, LogMessageParams, MarkupContent, MessageActionItem, ParameterInformation, PartialResultParams, Position, PrepareRenameParams, PublishDiagnosticsClientCapabilities, PublishDiagnosticsParams, PuppetFactResponse, PuppetFixDiagnosticErrorsRequest, PuppetFixDiagnosticErrorsResponse, PuppetNodeGraphResponse, PuppetResourceResponse, PuppetVersion, PuppetfileDependencyResponse, Range, ReferenceClientCapabilities, ReferenceContext, ReferenceOptions, ReferenceParams, ReferenceRegistrationOptions, Registration, RegistrationParams, RenameClientCapabilities, RenameFile, RenameFileOptions, RenameOptions, RenameParams, RenameRegistrationOptions, ResourceOperation, SaveOptions, SelectionRange, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRegistrationOptions, SemanticTokens, SemanticTokensClientCapabilities, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensEditsParams, SemanticTokensEditsPartialResult, SemanticTokensLegend, SemanticTokensOptions, SemanticTokensParams, SemanticTokensPartialResult, SemanticTokensRangeParams, SemanticTokensRegistrationOptions, SemanticTokensServerCapabilities, ShowMessageParams, ShowMessageRequestParams, SignatureHelp, SignatureHelpClientCapabilities, SignatureHelpContext, SignatureHelpOptions, SignatureHelpParams, SignatureHelpRegistrationOptions, SignatureInformation, StaticRegistrationOptions, SymbolInformation, TextDocument, TextDocumentChangeEvent, TextDocumentChangeRegistrationOptions, TextDocumentEdit, TextDocumentIdentifier, TextDocumentItem, TextDocumentPositionParams, TextDocumentRegistrationOptions, TextDocumentSaveRegistrationOptions, TextDocumentSyncClientCapabilities, TextDocumentSyncOptions, TextDocumentWillSaveEvent, TextEdit, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionParams, TypeDefinitionRegistrationOptions, Unregistration, UnregistrationParams, VersionedTextDocumentIdentifier, WillSaveTextDocumentParams, WorkDoneProgressBegin, WorkDoneProgressCancelParams, WorkDoneProgressClientCapabilities, WorkDoneProgressCreateParams, WorkDoneProgressEnd, WorkDoneProgressOptions, WorkDoneProgressParams, WorkDoneProgressReport, WorkspaceChange, WorkspaceEdit, WorkspaceEditClientCapabilities, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersClientCapabilities, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities, WorkspaceSymbolClientCapabilities, WorkspaceSymbolOptions, WorkspaceSymbolParams, WorkspaceSymbolRegistrationOptions

Class Method Summary collapse

Class Method Details

.create_range(from_line, from_char, to_line, to_char) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/lsp/lsp_base.rb', line 51

def self.create_range(from_line, from_char, to_line, to_char)
  {
    'start' => {
      'line' => from_line,
      'character' => from_char
    },
    'end' => {
      'line' => to_line,
      'character' => to_char
    }
  }
end