mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 05:51:27 +01:00
Require separate approval for managed resource commands
This commit is contained in:
@@ -115,6 +115,16 @@ fn managed_npm_obtains_and_installs_packages() -> Result<()> {
|
||||
("another-package".into(), "4.5.6".into()),
|
||||
],
|
||||
};
|
||||
let description = install().permission_description(&npm);
|
||||
for detail in [
|
||||
"@example/server",
|
||||
"1.2.3",
|
||||
"another-package",
|
||||
"4.5.6",
|
||||
installation_directory.to_str().expect("UTF-8 test path"),
|
||||
] {
|
||||
assert!(description.contains(detail), "{description}");
|
||||
}
|
||||
install().run(npm.clone()).await?;
|
||||
let arguments = fs::read_to_string(directory.join("npm.args"))?;
|
||||
let arguments = arguments.lines().collect::<Vec<_>>();
|
||||
|
||||
Reference in New Issue
Block a user