Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Refer to devcontainer.js rather than devcontainer.cmd.js (#48387)

KyleBarton13fbbaeb5975
diff --git a/crates/dev_container/src/devcontainer_api.rs b/crates/dev_container/src/devcontainer_api.rs
index 0407bbf7c71..bdba805ade0 100644
--- a/crates/dev_container/src/devcontainer_api.rs
+++ b/crates/dev_container/src/devcontainer_api.rs
@@ -334,6 +334,10 @@ fn dev_container_cli() -> String {
"devcontainer.cmd".to_string()
}
+fn dev_container_script() -> String {
+ "devcontainer.js".to_string()
+}
+
async fn check_for_docker(use_podman: bool) -> Result<(), DevContainerError> {
let mut command = if use_podman {
util::command::new_smol_command("podman")
@@ -371,7 +375,7 @@ async fn ensure_devcontainer_cli(
.join("node_modules")
.join("@devcontainers")
.join("cli")
- .join(format!("{}.js", &dev_container_cli()));
+ .join(&dev_container_script());
log::debug!(
"devcontainer not found in path, using local location: ${}",