Skip to content

Commit e5ca3e0

Browse files
committed
🩹 temporarily don't show use codebase on jetbrains
1 parent 18ff271 commit e5ca3e0

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

gui/src/components/mainInput/InputToolbar.tsx

+20-16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
} from "..";
1616
import { defaultModelSelector } from "../../redux/selectors/modelSelectors";
1717
import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../../util";
18+
import { isJetBrains } from "../../util/ide";
1819

1920
const StyledDiv = styled.div<{ hidden?: boolean }>`
2021
position: absolute;
@@ -128,22 +129,25 @@ function InputToolbar(props: InputToolbarProps) {
128129
</span>
129130
)}
130131
</span>
131-
<span
132-
style={{
133-
color: props.usingCodebase ? vscBadgeBackground : lightGray,
134-
backgroundColor: props.usingCodebase ? lightGray + "33" : undefined,
135-
borderRadius: defaultBorderRadius,
136-
padding: "2px 4px",
137-
}}
138-
onClick={(e) => {
139-
props.onEnter({
140-
useCodebase: true,
141-
});
142-
}}
143-
className={"hover:underline cursor-pointer float-right"}
144-
>
145-
{getMetaKeyLabel()} ⏎ Use Codebase
146-
</span>
132+
133+
{isJetBrains() || (
134+
<span
135+
style={{
136+
color: props.usingCodebase ? vscBadgeBackground : lightGray,
137+
backgroundColor: props.usingCodebase ? lightGray + "33" : undefined,
138+
borderRadius: defaultBorderRadius,
139+
padding: "2px 4px",
140+
}}
141+
onClick={(e) => {
142+
props.onEnter({
143+
useCodebase: true,
144+
});
145+
}}
146+
className={"hover:underline cursor-pointer float-right"}
147+
>
148+
{getMetaKeyLabel()} ⏎ Use Codebase
149+
</span>
150+
)}
147151

148152
<EnterButton
149153
offFocus={props.usingCodebase}

0 commit comments

Comments
 (0)