Allow opening a single remote file (#11983)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-17 10:57:04 -06:00 committed by GitHub
parent a787be6c9f
commit 483a735e03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,7 +178,7 @@ impl DevServer {
let path = std::path::Path::new(&expanded);
let fs = cx.read_model(&this, |this, _| this.app_state.fs.clone())?;
let path_exists = fs.is_dir(path).await;
let path_exists = fs.metadata(path).await.is_ok_and(|result| result.is_some());
if !path_exists {
return Err(anyhow!(ErrorCode::DevServerProjectPathDoesNotExist))?;
}