VS Code -> Zed tasks converter (#9538)

We can convert shell, npm and gulp tasks to a Zed format. Additionally, we convert a subset of task variables that VsCode supports.

Release notes:

- Zed can now load tasks in Visual Studio Code task format

---------

Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Anthony Eid 2024-03-20 11:37:26 -04:00 committed by GitHub
parent 269d2513ca
commit 88857f8149
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 605 additions and 17 deletions

View file

@ -29,7 +29,10 @@ use settings::{
SettingsStore, DEFAULT_KEYMAP_PATH,
};
use std::{borrow::Cow, ops::Deref, path::Path, sync::Arc};
use task::{oneshot_source::OneshotSource, static_source::StaticSource};
use task::{
oneshot_source::OneshotSource,
static_source::{StaticSource, TrackedFile},
};
use terminal_view::terminal_panel::{self, TerminalPanel};
use util::{
asset_str,
@ -166,7 +169,11 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
fs,
paths::TASKS.clone(),
);
StaticSource::new("global_tasks", tasks_file_rx, cx)
StaticSource::new(
"global_tasks",
TrackedFile::new(tasks_file_rx, cx),
cx,
)
},
cx,
);