From 181dc86b482cc4b7d53b860d3f2a60a471ea9a18 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 26 Mar 2024 16:29:55 -0400 Subject: [PATCH] Fix typo in PureScript extension's struct name (#9831) This PR fixes a copy/paste typo in the name of the PureScript extension's struct name. Release Notes: - N/A --- extensions/purescript/src/purescript.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/purescript/src/purescript.rs b/extensions/purescript/src/purescript.rs index 82723ba781..480d3d8ce3 100644 --- a/extensions/purescript/src/purescript.rs +++ b/extensions/purescript/src/purescript.rs @@ -4,11 +4,11 @@ use zed_extension_api::{self as zed, Result}; const SERVER_PATH: &str = "node_modules/.bin/purescript-language-server"; const PACKAGE_NAME: &str = "purescript-language-server"; -struct PrismaExtension { +struct PurescriptExtension { did_find_server: bool, } -impl PrismaExtension { +impl PurescriptExtension { fn server_exists(&self) -> bool { fs::metadata(SERVER_PATH).map_or(false, |stat| stat.is_file()) } @@ -54,7 +54,7 @@ impl PrismaExtension { } } -impl zed::Extension for PrismaExtension { +impl zed::Extension for PurescriptExtension { fn new() -> Self { Self { did_find_server: false, @@ -96,4 +96,4 @@ impl zed::Extension for PrismaExtension { } } -zed::register_extension!(PrismaExtension); +zed::register_extension!(PurescriptExtension);