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:
parent
269d2513ca
commit
88857f8149
11 changed files with 605 additions and 17 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue