class Mint::LS::Completion

Defined in:

ls/completion.cr
ls/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

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=

Constructor methods inherited from class LSP::RequestMessage

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def completion_item(node : Ast::Argument) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Component) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Constant, parent_name : String | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Function, parent_name : String | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Get, parent_name : String | Nil = nil) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Property) : LSP::CompletionItem #

[View source]
def completion_item(node : Ast::Style) : LSP::CompletionItem #

[View source]
def completions(node : Ast::Component, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Enum) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Function) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Module, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Store, global : Bool = false) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Style) : Array(LSP::CompletionItem) #

[View source]
def completions(node : Ast::Node, global : Bool = false) #

[View source]
def execute(server) #

[View source]
def params : LSP::CompletionParams #

[View source]
def params=(params : LSP::CompletionParams) #

[View source]
def snippet_support : Bool | Nil #

[View source]
def snippet_support=(snippet_support : Bool | Nil) #

[View source]
def workspace #

[View source]