Added build-licenses command to style tree

This commit is contained in:
Mikayla Maki 2023-01-26 17:27:42 -08:00
parent 4918ad5789
commit c44acaefff
22 changed files with 632 additions and 403 deletions

View file

@ -57,7 +57,8 @@ actions!(
DebugElements,
OpenSettings,
OpenLog,
OpenLicenses,
OpenSoftwareLicenses,
OpenThemeLicenses,
OpenTelemetryLog,
OpenKeymap,
OpenDefaultSettings,
@ -179,17 +180,32 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::MutableAppContext) {
});
cx.add_action({
let app_state = app_state.clone();
move |workspace: &mut Workspace, _: &OpenLicenses, cx: &mut ViewContext<Workspace>| {
move |workspace: &mut Workspace,
_: &OpenSoftwareLicenses,
cx: &mut ViewContext<Workspace>| {
open_bundled_file(
workspace,
app_state.clone(),
"licenses.md",
"software_licenses.md",
"Open Source License Attribution",
"Markdown",
cx,
);
}
});
cx.add_action({
let app_state = app_state.clone();
move |workspace: &mut Workspace, _: &OpenThemeLicenses, cx: &mut ViewContext<Workspace>| {
open_bundled_file(
workspace,
app_state.clone(),
"theme_licenses.md",
"Theme License Attribution",
"Markdown",
cx,
);
}
});
cx.add_action({
let app_state = app_state.clone();
move |workspace: &mut Workspace, _: &OpenTelemetryLog, cx: &mut ViewContext<Workspace>| {