Skip to content

Commit 60927d1

Browse files
committed
Do not load user or repo plugins by default when initializing a headless instance in Rust API
1 parent 5fd6a9e commit 60927d1

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

rust/src/headless.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ impl InitializationOptions {
111111
Self::default()
112112
}
113113

114-
pub fn minimal() -> Self {
115-
Self {
116-
user_plugins: false,
117-
repo_plugins: false,
118-
..Self::default()
119-
}
120-
}
121-
122114
/// A license to override with, you can use this to make sure you initialize with a specific license.
123115
///
124116
/// This takes the form of a JSON array. The string should be formed like:
@@ -174,8 +166,8 @@ impl Default for InitializationOptions {
174166
floating_license_duration: Duration::from_secs(900),
175167
bundled_plugin_directory: bundled_plugin_directory()
176168
.expect("Failed to get bundled plugin directory"),
177-
user_plugins: true,
178-
repo_plugins: true,
169+
user_plugins: false,
170+
repo_plugins: false,
179171
}
180172
}
181173
}

0 commit comments

Comments
 (0)