mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-28 09:54:33 +00:00
Reverts zed-industries/zed#9658, as the Docker image is now available. Release notes: - N/A
This commit is contained in:
parent
ae6f138b6c
commit
945d8c2112
6 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
# syntax = docker/dockerfile:1.2
|
||||
|
||||
FROM rust:1.76-bookworm as builder
|
||||
FROM rust:1.77-bookworm as builder
|
||||
WORKDIR app
|
||||
COPY . .
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ pub fn new_journal_entry(app_state: Arc<AppState>, cx: &mut WindowContext) {
|
|||
std::fs::create_dir_all(month_dir)?;
|
||||
OpenOptions::new()
|
||||
.create(true)
|
||||
.truncate(false)
|
||||
.write(true)
|
||||
.open(&entry_path)?;
|
||||
Ok::<_, std::io::Error>((journal_dir, entry_path))
|
||||
|
|
|
@ -80,8 +80,11 @@ struct AvailableLanguage {
|
|||
|
||||
enum AvailableGrammar {
|
||||
Native(tree_sitter::Language),
|
||||
Loaded(#[allow(dead_code)] PathBuf, tree_sitter::Language),
|
||||
Loading(PathBuf, Vec<oneshot::Sender<Result<tree_sitter::Language>>>),
|
||||
Loaded(#[allow(unused)] PathBuf, tree_sitter::Language),
|
||||
Loading(
|
||||
#[allow(unused)] PathBuf,
|
||||
Vec<oneshot::Sender<Result<tree_sitter::Language>>>,
|
||||
),
|
||||
Unloaded(PathBuf),
|
||||
}
|
||||
|
||||
|
|
|
@ -530,7 +530,7 @@ impl Project {
|
|||
if buffer_language.prettier_parser_name().is_none() {
|
||||
return Task::ready(None);
|
||||
}
|
||||
let Some(node) = self.node.as_ref().map(Arc::clone) else {
|
||||
let Some(node) = self.node.clone() else {
|
||||
return Task::ready(None);
|
||||
};
|
||||
match File::from_dyn(buffer_file).map(|file| (file.worktree_id(cx), file.abs_path(cx))) {
|
||||
|
|
|
@ -590,7 +590,7 @@ mod tests {
|
|||
(TaskSourceKind::UserInput, common_name.to_string()),
|
||||
(TaskSourceKind::UserInput, "user_input".to_string()),
|
||||
];
|
||||
let worktree_1_tasks = vec![
|
||||
let worktree_1_tasks = [
|
||||
(
|
||||
TaskSourceKind::Worktree {
|
||||
id: worktree_1,
|
||||
|
@ -606,7 +606,7 @@ mod tests {
|
|||
"worktree_1".to_string(),
|
||||
),
|
||||
];
|
||||
let worktree_2_tasks = vec![
|
||||
let worktree_2_tasks = [
|
||||
(
|
||||
TaskSourceKind::Worktree {
|
||||
id: worktree_2,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[toolchain]
|
||||
channel = "1.76"
|
||||
channel = "1.77"
|
||||
profile = "minimal"
|
||||
components = [ "rustfmt", "clippy" ]
|
||||
targets = [ "x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-unknown-linux-gnu", "wasm32-wasi" ]
|
||||
|
|
Loading…
Reference in a new issue