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/github-mint-lang-mint-0.19.0/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::TypeId | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Function, parent_name : Ast::TypeId | Nil = nil) : LSP::CompletionItem
- #completion_item(node : Ast::Get, parent_name : Ast::TypeId | 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
WHY IS THIS NEEDED FOR 1.9.1 and not for 1.8??????
-
#snippet_support=(snippet_support : Bool | Nil)
WHY IS THIS NEEDED FOR 1.9.1 and not for 1.8??????
- #workspace
Instance methods inherited from class LSP::RequestMessage
execute(server : Server)
execute,
id : Int32 | String
id,
id=(id : Int32 | String)
id=,
method : String
method,
method=(method : String)
method=,
snippet_support : Bool | Nil
snippet_support,
snippet_support=(snippet_support : Bool | Nil)
snippet_support=
Constructor methods inherited from class LSP::RequestMessage
new(pull : JSON::PullParser)
new
Constructor Detail
Instance Method Detail
def completion_item(node : Ast::Constant, parent_name : Ast::TypeId | Nil = nil) : LSP::CompletionItem
#
def completion_item(node : Ast::Function, parent_name : Ast::TypeId | Nil = nil) : LSP::CompletionItem
#
def snippet_support : Bool | Nil
#
Description copied from class LSP::RequestMessage
WHY IS THIS NEEDED FOR 1.9.1 and not for 1.8??????
def snippet_support=(snippet_support : Bool | Nil)
#
Description copied from class LSP::RequestMessage
WHY IS THIS NEEDED FOR 1.9.1 and not for 1.8??????