You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: workspace.rs
    path of file: ./repos/mun/crates/mun_language_server/src/state
    
    the code of the file until where you have to start completion: use std::{
    convert::{TryFrom, TryInto},
    sync::Arc,
};

use mun_paths::{AbsPathBuf, RelativePath};

use super::LanguageServerState;
use crate::{change::AnalysisChange, config::FilesWatcher};

impl LanguageServerState {
    /// Called to update all workspaces from the files
    pub(crate) fn fetch_workspaces(&mut self) {
        // Load all the manifests as packages
        let packages = self
            .config
    
    
    pub(crate) fn recompute_source_roots(&self) -> Vec<mun_hir::SourceRoot> {
        // Iterate over all sources and see to which package they belong
        let mut source_roots = vec![mun_hir::SourceRoot::default(); self.packages.len()];

        // Source directories
        let source_dirs = self
            .packages
            .iter()
            .map(|p| {
                AbsPathBuf::try_from(p.source_directory())
                    .expect("must be able to convert source dir to absolute path")
            })
            .collect::<Vec<_>>();

        // Iterate over all files and find to which source directory they belong,
        // including their relative path
        let vfs = &*self.vfs.read();
        for (file_id, path) in vfs.iter() {
            if let Some((idx, relative_path)) =
                source_dirs
                    .iter()
                    .enumerate()
                    .find_map(|(index, source_dir)| {
                        path.strip_prefix(source_dir)
                            .ok()
                            .and_then(|path| RelativePath::from_path(path).ok())
                            .map(|relative| (index, relative))
                    })
            {
                source_roots[idx].insert_file(mun_hir::FileId(file_id.0), relative_path);
            }
        }

        source_roots
    }