mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
fix(search): Don't show inline cody widget when new cody web is enabled (#63608)
Closes srch-673 This disables the inline cody widget when new cody web is enabled. The widget doesn't work with the new sidebar. ## Test plan Code inspection, it's a simple code change.
This commit is contained in:
parent
ad03371193
commit
9ecc6e9444
@ -20,7 +20,7 @@ import { createCodeIntelAPI } from '@sourcegraph/shared/src/codeintel/api'
|
||||
import { editorHeight, useCodeMirror, useCompartment } from '@sourcegraph/shared/src/components/CodeMirrorEditor'
|
||||
import { useKeyboardShortcut } from '@sourcegraph/shared/src/keyboardShortcuts/useKeyboardShortcut'
|
||||
import { Shortcut } from '@sourcegraph/shared/src/react-shortcuts'
|
||||
import { useSettings } from '@sourcegraph/shared/src/settings/settings'
|
||||
import { useSettings, useExperimentalFeatures } from '@sourcegraph/shared/src/settings/settings'
|
||||
import type { TemporarySettingsSchema } from '@sourcegraph/shared/src/settings/temporary/TemporarySettings'
|
||||
import type { TelemetryV2Props } from '@sourcegraph/shared/src/telemetry'
|
||||
import type { TelemetryProps } from '@sourcegraph/shared/src/telemetry/telemetryService'
|
||||
@ -339,8 +339,9 @@ export const CodeMirrorBlob: React.FunctionComponent<BlobProps> = props => {
|
||||
)
|
||||
|
||||
const { isFileIgnored } = useCodyIgnore()
|
||||
const newCodyWeb = useExperimentalFeatures(features => features.newCodyWeb)
|
||||
const isCodyEnabledForFile =
|
||||
window.context?.codyEnabledForCurrentUser && !isFileIgnored(blobInfo.repoName, blobInfo.filePath)
|
||||
!newCodyWeb && window.context?.codyEnabledForCurrentUser && !isFileIgnored(blobInfo.repoName, blobInfo.filePath)
|
||||
|
||||
const extensions = useMemo(
|
||||
() => [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user