File tree 1 file changed +20
-16
lines changed
gui/src/components/mainInput
1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
} from ".." ;
16
16
import { defaultModelSelector } from "../../redux/selectors/modelSelectors" ;
17
17
import { getMetaKeyLabel , isMetaEquivalentKeyPressed } from "../../util" ;
18
+ import { isJetBrains } from "../../util/ide" ;
18
19
19
20
const StyledDiv = styled . div < { hidden ?: boolean } > `
20
21
position: absolute;
@@ -128,22 +129,25 @@ function InputToolbar(props: InputToolbarProps) {
128
129
</ span >
129
130
) }
130
131
</ 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
+ ) }
147
151
148
152
< EnterButton
149
153
offFocus = { props . usingCodebase }
You can’t perform that action at this time.
0 commit comments