From e5ca3e07b1edf1b7bede7aff2a301c2debe823c8 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 16 Apr 2024 02:22:11 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20temporarily=20don't=20show=20use?= =?UTF-8?q?=20codebase=20on=20jetbrains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/src/components/mainInput/InputToolbar.tsx | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 1fc7dc928..0f2ff6991 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -15,6 +15,7 @@ import { } from ".."; import { defaultModelSelector } from "../../redux/selectors/modelSelectors"; import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../../util"; +import { isJetBrains } from "../../util/ide"; const StyledDiv = styled.div<{ hidden?: boolean }>` position: absolute; @@ -128,22 +129,25 @@ function InputToolbar(props: InputToolbarProps) { )} - { - props.onEnter({ - useCodebase: true, - }); - }} - className={"hover:underline cursor-pointer float-right"} - > - {getMetaKeyLabel()} ⏎ Use Codebase - + + {isJetBrains() || ( + { + props.onEnter({ + useCodebase: true, + }); + }} + className={"hover:underline cursor-pointer float-right"} + > + {getMetaKeyLabel()} ⏎ Use Codebase + + )}