Tidy up LSP (#17973)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-09-18 11:15:46 -06:00 committed by GitHub
parent eda7e88fd4
commit 826777a257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 27 deletions

View file

@ -42,11 +42,7 @@ impl HeadlessProject {
}
pub fn new(session: Arc<SshSession>, fs: Arc<dyn Fs>, cx: &mut ModelContext<Self>) -> Self {
let mut languages = LanguageRegistry::new(cx.background_executor().clone());
languages
.set_language_server_download_dir(PathBuf::from("/Users/conrad/what-could-go-wrong"));
let languages = Arc::new(languages);
let languages = Arc::new(LanguageRegistry::new(cx.background_executor().clone()));
let worktree_store = cx.new_model(|_| WorktreeStore::new(true, fs.clone()));
let buffer_store = cx.new_model(|cx| {