class Mint::LS::Completion
- Mint::LS::Completion
- LSP::RequestMessage
- 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/enum.cr
ls/completions/functions.cr
ls/completions/module.cr
ls/completions/store.cr
ls/completions/style.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/gitlab-JakeSub-mint-master/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 : String | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Function, parent_name : String | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Get, parent_name : String | 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::Enum) : 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::Node, global : Bool = false)
- #execute(server)
- #params : LSP::CompletionParams
- #params=(params : LSP::CompletionParams)
- #snippet_support : Bool | Nil
- #snippet_support=(snippet_support : Bool | Nil)
- #workspace