From 60927d114f7fffea016d58fed5d1a6ccde1ec130 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 11 Feb 2025 14:29:55 -0500 Subject: Do not load user or repo plugins by default when initializing a headless instance in Rust API --- rust/src/headless.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'rust/src') diff --git a/rust/src/headless.rs b/rust/src/headless.rs index 3eb6ee57..f992c27e 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -111,14 +111,6 @@ impl InitializationOptions { Self::default() } - pub fn minimal() -> Self { - Self { - user_plugins: false, - repo_plugins: false, - ..Self::default() - } - } - /// A license to override with, you can use this to make sure you initialize with a specific license. /// /// This takes the form of a JSON array. The string should be formed like: @@ -174,8 +166,8 @@ impl Default for InitializationOptions { floating_license_duration: Duration::from_secs(900), bundled_plugin_directory: bundled_plugin_directory() .expect("Failed to get bundled plugin directory"), - user_plugins: true, - repo_plugins: true, + user_plugins: false, + repo_plugins: false, } } } -- cgit v1.3.1