pub enum Prettier {
Real(RealPrettier),
}
Variants§
Real(RealPrettier)
Implementations§
source§impl Prettier
impl Prettier
pub const CONFIG_FILE_NAMES: &'static [&'static str] = _
pub async fn locate_prettier_installation( fs: &dyn Fs, installed_prettiers: &HashSet<PathBuf>, locate_from: &Path ) -> Result<ControlFlow<(), Option<PathBuf>>>
pub async fn start( server_id: LanguageServerId, prettier_dir: PathBuf, node: Arc<dyn NodeRuntime>, cx: AsyncAppContext ) -> Result<Self>
pub async fn format( &self, buffer: &Model<Buffer>, buffer_path: Option<PathBuf>, cx: &mut AsyncAppContext ) -> Result<Diff>
pub async fn clear_cache(&self) -> Result<()>
pub fn server(&self) -> Option<&Arc<LanguageServer>>
pub fn is_default(&self) -> bool
pub fn prettier_dir(&self) -> &Path
Auto Trait Implementations§
impl !RefUnwindSafe for Prettier
impl Send for Prettier
impl Sync for Prettier
impl Unpin for Prettier
impl !UnwindSafe for Prettier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more