The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
fix(plugins): explain how to approve a process program installed after its grant (#1590)
l0ng-aiad6450633678
diff --git a/crates/ide-host/src/plugins/api.rs b/crates/ide-host/src/plugins/api.rsindex a09e61a1e..7c3d2b45a 100644--- a/crates/ide-host/src/plugins/api.rs+++ b/crates/ide-host/src/plugins/api.rs@@ -306,8 +306,9 @@ impl PluginApi {// allowed, and installing it later approves nothing by itself.let pin = self.shared.pins.read().get(&(self.id().to_owned(), cap.clone())).cloned().ok_or_else(|| {HostError::Failed(format!(- "{cap}: `{program}` was not found when this permission was allowed; \- install it, then allow {cap} again in Settings › Plugins"+ "{cap}: `{program}` was not found on PATH when this permission was allowed. \+ Restarting doesn't approve a program installed later: once `{program}` is on PATH, \+ clear {cap} in Settings › Plugins and select it again"))})?;pin.verify().map(Path::to_path_buf).map_err(|e| HostError::Denied(format!("{cap}: {e}")))@@ -831,7 +832,8 @@ mod tests {// Allowed while the program was missing: say how to fix it rather than "not granted".let err = api.approved_program("lint").unwrap_err().to_string();assert!(- err.contains("was not found when this permission was allowed") && err.contains("allow process:lint again"),+ err.contains("was not found on PATH when this permission was allowed")+ && err.contains("clear process:lint in Settings › Plugins and select it again"),"{err}");