workspace: add settings() getter

This commit is contained in:
Yuya Nishihara 2024-12-30 17:33:13 +09:00
parent 556ef26608
commit 393f3acb03

View file

@ -408,6 +408,11 @@ impl Workspace {
&self.repo_loader &self.repo_loader
} }
/// Settings for this workspace.
pub fn settings(&self) -> &UserSettings {
self.repo_loader.settings()
}
pub fn working_copy(&self) -> &dyn WorkingCopy { pub fn working_copy(&self) -> &dyn WorkingCopy {
self.working_copy.as_ref() self.working_copy.as_ref()
} }