Revert unnecessary style changes

This commit is contained in:
Kirill Bulatov 2023-10-12 16:15:42 +03:00
parent 09ef3ccf67
commit 7aea95704e
5 changed files with 6 additions and 8 deletions

View File

@ -229,12 +229,11 @@ impl Fs for RealFs {
} else {
symlink_metadata
};
let file_type_metadata = metadata.file_type();
Ok(Some(Metadata {
inode: metadata.ino(),
mtime: metadata.modified().unwrap(),
is_symlink,
is_dir: file_type_metadata.is_dir(),
is_dir: metadata.file_type().is_dir(),
}))
}

View File

@ -317,8 +317,8 @@ pub struct Chunk<'a> {
pub struct Diff {
pub(crate) base_version: clock::Global,
pub(crate) line_ending: LineEnding,
pub(crate) edits: Vec<(Range<usize>, Arc<str>)>,
line_ending: LineEnding,
edits: Vec<(Range<usize>, Arc<str>)>,
}
#[derive(Clone, Copy)]

View File

@ -170,7 +170,7 @@ message Envelope {
LinkChannel link_channel = 140;
UnlinkChannel unlink_channel = 141;
MoveChannel move_channel = 142; // Current max: 144
MoveChannel move_channel = 142; // current max: 144
}
}

View File

@ -349,7 +349,7 @@ request_messages!(
(UpdateProject, Ack),
(UpdateWorktree, Ack),
(JoinChannelBuffer, JoinChannelBufferResponse),
(LeaveChannelBuffer, Ack),
(LeaveChannelBuffer, Ack)
);
entity_messages!(
@ -400,7 +400,7 @@ entity_messages!(
UpdateProjectCollaborator,
UpdateWorktree,
UpdateWorktreeSettings,
UpdateDiffBase,
UpdateDiffBase
);
entity_messages!(

View File

@ -100,7 +100,6 @@ impl LspAdapter for IntelephenseLspAdapter {
async fn initialization_options(&self) -> Option<serde_json::Value> {
None
}
async fn language_ids(&self) -> HashMap<String, String> {
HashMap::from_iter([("PHP".into(), "php".into())])
}