class Mint::LS::Completion
- Mint::LS::Completion
- Reference
- Object
Defined in:
ls/completion.crls/completion_item/argument.cr
ls/completion_item/component.cr
ls/completion_item/constant.cr
ls/completion_item/function.cr
ls/completion_item/get.cr
ls/completion_item/property.cr
ls/completion_item/style.cr
ls/completions/component.cr
ls/completions/functions.cr
ls/completions/module.cr
ls/completions/store.cr
ls/completions/style.cr
ls/completions/type_definition.cr
Constant Summary
-
CSS_PROPERTY_COMPLETIONS =
TypeChecker::CSS_PROPERTY_NAMES.map do |name| LSP::CompletionItem.new(kind: LSP::CompletionItemKind::Snippet, insert_text: "#{name}: ${0};", detail: "CSS Property", filter_text: name, sort_text: name, label: name) end
-
HTML_TAG_COMPLETIONS =
({{ (read_file("/srv/crystaldoc.info/github-mint-lang-mint-0.20.1/src/ls/../assets/html_tags")).strip }}).lines.map do |name| LSP::CompletionItem.new(kind: LSP::CompletionItemKind::Snippet, insert_text: "<#{name}>${0}</#{name}>", detail: "HTML Tag", filter_text: name, sort_text: name, label: name) end
Constructors
Instance Method Summary
- #completion_item(node : Ast::Argument) : LSP::CompletionItem
- #completion_item(node : Ast::Component) : LSP::CompletionItem
- #completion_item(node : Ast::Constant, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Function, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Get, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Property) : LSP::CompletionItem
- #completion_item(node : Ast::Style) : LSP::CompletionItem
- #completions(node : Ast::Component, global : Bool = false) : Array(LSP::CompletionItem)
- #completions(node : Ast::Function) : Array(LSP::CompletionItem)
- #completions(node : Ast::Module, global : Bool = false) : Array(LSP::CompletionItem)
- #completions(node : Ast::Store, global : Bool = false) : Array(LSP::CompletionItem)
- #completions(node : Ast::Style) : Array(LSP::CompletionItem)
- #completions(node : Ast::TypeDefinition) : Array(LSP::CompletionItem)
- #completions(node : Ast::Node, global : Bool = false)
- #process(params : LSP::CompletionParams)
Constructor Detail
Instance Method Detail
def completion_item(node : Ast::Constant, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem
#
def completion_item(node : Ast::Function, parent_name : Ast::Id | Nil = nil) : LSP::CompletionItem
#