Module: Requests::TextDocument::Completion::CompletionKind
- Defined in:
- lib/holistic/language_server/requests/text_document/completion.rb
Constant Summary collapse
- FROM_SCOPE_TO_COMPLETION =
{ ::Holistic::Ruby::Scope::Kind::CLASS => Protocol::COMPLETION_ITEM_KIND_CLASS, ::Holistic::Ruby::Scope::Kind::LAMBDA => Protocol::COMPLETION_ITEM_KIND_FUNCTION, ::Holistic::Ruby::Scope::Kind::CLASS_METHOD => Protocol::COMPLETION_ITEM_KIND_METHOD, ::Holistic::Ruby::Scope::Kind::INSTANCE_METHOD => Protocol::COMPLETION_ITEM_KIND_METHOD, ::Holistic::Ruby::Scope::Kind::MODULE => Protocol::COMPLETION_ITEM_KIND_MODULE, ::Holistic::Ruby::Scope::Kind::ROOT => Protocol::COMPLETION_ITEM_KIND_MODULE }.freeze
- DEFAULT =
Protocol::COMPLETION_ITEM_KIND_MODULE
Class Method Summary collapse
Class Method Details
.fetch(scope_kind) ⇒ Object
65 66 67 |
# File 'lib/holistic/language_server/requests/text_document/completion.rb', line 65 def self.fetch(scope_kind) FROM_SCOPE_TO_COMPLETION.fetch(scope_kind, DEFAULT) end |