class AmberLSP::ProjectContext

Defined in:

amber_lsp/project_context.cr

Constant Summary

STACK_SHARD_NAMES = ["amber", "amber_router", "grant", "gemma", "asset_pipeline", "micrate", "quartz_mailer"]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.detect(root_path : String) : ProjectContext #

[View source]
def self.detect_for_file(file_path : String) : ProjectContext #

[View source]
def self.new(root_path : String, amber_project : Bool = false, shard_name : String | Nil = nil, failure_reason : String | Nil = nil, stack_project : Bool = false) #

[View source]

Class Method Detail

def self.project_root_for_file(file_path : String) : String #

[View source]

Instance Method Detail

def amber_project? : Bool #

[View source]
def failure_reason : String | Nil #

[View source]
def root_path : String #

[View source]
def shard_name : String | Nil #

[View source]
def stack_project? : Bool #

[View source]