sun::lsp::EntrypointManager
class · Source (opens in a new tab)
class sun::lsp::EntrypointManagerGlobal entrypoint configuration state.
Public Functions
entrypoints
public · function · Source (opens in a new tab)
const std::vector< EntrypointConfig > & sun::lsp::EntrypointManager::entrypoints() constEvery 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) constFind 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() constCheck 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.