sun::lsp::EntrypointManager

sun::lsp::EntrypointManager

class · Source (opens in a new tab)

class sun::lsp::EntrypointManager

Global entrypoint configuration state.

Public Functions

entrypoints

public · function · Source (opens in a new tab)

const std::vector< EntrypointConfig > & sun::lsp::EntrypointManager::entrypoints() const

Every resolved entrypoint, for workspace-wide requests.

Related: EntrypointConfig

findEntrypointForFile

public · function · Source (opens in a new tab)

const EntrypointConfig * sun::lsp::EntrypointManager::findEntrypointForFile(const std::string &filePath) const

Find entrypoint config for a given file path Returns nullptr if file is not covered by any entrypoint.

Related: EntrypointConfig

hasEntrypoints

public · function · Source (opens in a new tab)

bool sun::lsp::EntrypointManager::hasEntrypoints() const

Check if any entrypoints are configured.

reparse

public · function · Source (opens in a new tab)

void sun::lsp::EntrypointManager::reparse()

Re-resolve the configured entrypoints, e.g.

after path variables change

setEntrypoints

public · function · Source (opens in a new tab)

void sun::lsp::EntrypointManager::setEntrypoints(const std::vector< std::string > &paths)

Set entrypoints from configuration and build file mappings.

Private Functions

parseEntrypoint

private · function · Source (opens in a new tab)

std::optional< EntrypointConfig > sun::lsp::EntrypointManager::parseEntrypoint(const std::string &path)

Parse an entrypoint file and extract manifest information.

Related: EntrypointConfig

Private Fields

configuredPaths_

private · variable · Source (opens in a new tab)

std::vector<std::string> sun::lsp::EntrypointManager::configuredPaths_

No documentation comment.

entrypoints_

private · variable · Source (opens in a new tab)

std::vector<EntrypointConfig> sun::lsp::EntrypointManager::entrypoints_

No documentation comment.

Related: EntrypointConfig

fileToEntrypoint_

private · variable · Source (opens in a new tab)

std::unordered_map<std::string, size_t> sun::lsp::EntrypointManager::fileToEntrypoint_

No documentation comment.