From 1f5973b5ffad3ebefeb663f5c06218f6bda146ab Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 13 Jul 2021 17:54:13 +0200 Subject: [PATCH] No longer shows prettier missing message in terminal when opening for instance preferences --- src/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.cpp b/src/source.cpp index 8608628..57c45df 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -717,7 +717,7 @@ void Source::View::setup_signals() { void Source::View::setup_format_style(bool is_generic_view) { static auto prettier = filesystem::find_executable("prettier"); auto prefer_prettier = is_language({"js", "json", "css", "html", "markdown", "yaml"}); - if(prettier.empty() && prefer_prettier) { + if(prettier.empty() && prefer_prettier && !filesystem::file_in_path(file_path, Config::get().home_juci_path)) { static bool shown = false; if(!shown) { Terminal::get().print("\e[33mWarning\e[m: could not find Prettier code formatter.\n");