Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 96ae7bf

Browse files
Merge branch 'main' into jhh/revamp-expand-contract-sidebar
2 parents 0b9089b + e11a5a8 commit 96ae7bf

File tree

380 files changed

+3452
-2857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+3452
-2857
lines changed

.github/workflows/sg-setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Go
2525
uses: actions/setup-go@v2
2626
with:
27-
go-version: 1.20.9
27+
go-version: 1.20.10
2828

2929
- name: Install asdf plugins
3030
uses: asdf-vm/actions/install@v1

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
golang 1.20.9
1+
golang 1.20.10
22
nodejs 18.17.1
33
fd 8.6.0
44
shfmt 3.5.0

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ go_rules_dependencies()
314314

315315
go_register_toolchains(
316316
nogo = "@//:sg_nogo",
317-
version = "1.20.9",
317+
version = "1.20.10",
318318
)
319319

320320
linter_dependencies()

client/branded/src/search-ui/input/SearchBox.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ export interface SearchBoxProps
4646
/** Don't show search help button */
4747
hideHelpButton?: boolean
4848

49-
/** Set in JSContext only available to the web app. */
50-
isExternalServicesUserModeAll?: boolean
51-
5249
/** Called with the underlying editor instance on creation. */
5350
onEditorCreated?: (editor: IEditor) => void
5451

client/jetbrains/webview/src/search/input/JetBrainsSearchBox.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ export interface JetBrainsSearchBoxProps
4646
/** Don't show search help button */
4747
hideHelpButton?: boolean
4848

49-
/** Set in JSContext only available to the web app. */
50-
isExternalServicesUserModeAll?: boolean
51-
5249
/** Called with the underlying editor instance on creation. */
5350
onEditorCreated?: (editor: IEditor) => void
5451
}

client/web-sveltekit/src/lib/branded.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export {
44
basicSyntaxColumns,
55
exampleQueryColumns,
66
} from '@sourcegraph/branded/src/search-ui/components/QueryExamples.constants'
7-
export { createDefaultSuggestions, singleLine } from '@sourcegraph/branded/src/search-ui/input/codemirror'
7+
export { createDefaultSuggestions } from '@sourcegraph/branded/src/search-ui/input/codemirror'
8+
export { multiline } from '@sourcegraph/branded/src/search-ui/input/codemirror/multiline'
89
export { parseInputAsQuery } from '@sourcegraph/branded/src/search-ui/input/codemirror/parsedQuery'
910
export { querySyntaxHighlighting } from '@sourcegraph/branded/src/search-ui/input/codemirror/syntax-highlighting'
1011
export { decorateQuery } from '@sourcegraph/branded/src/search-ui/util/query'

client/web-sveltekit/src/lib/search/CodeMirrorQueryInput.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
import { browser } from '$app/environment'
99
import { goto } from '$app/navigation'
10-
import { createDefaultSuggestions, singleLine, parseInputAsQuery, querySyntaxHighlighting } from '$lib/branded'
10+
import { createDefaultSuggestions, multiline, parseInputAsQuery, querySyntaxHighlighting } from '$lib/branded'
1111
import type { SearchPatternType } from '$lib/graphql-operations'
1212
import { fetchStreamSuggestions, QueryChangeSource, type QueryState } from '$lib/shared'
1313
@@ -46,7 +46,6 @@
4646
fetchSuggestions: query => fetchStreamSuggestions(query),
4747
isSourcegraphDotCom: false,
4848
navigate: url => goto(url.toString()),
49-
applyOnEnter: true,
5049
}),
5150
]
5251
@@ -84,7 +83,7 @@
8483
},
8584
])
8685
),
87-
singleLine,
86+
multiline(false),
8887
EditorView.updateListener.of(update => {
8988
const { state } = update
9089
if (update.docChanged) {

client/web/dev/utils/create-js-context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const createJsContext = ({ sourcegraphBaseUrl }: { sourcegraphBaseUrl: st
3737
codeIntelAutoIndexingEnabled: false,
3838
codeIntelAutoIndexingAllowGlobalPolicies: false,
3939
codeInsightsEnabled: true,
40-
externalServicesUserMode: 'public',
4140
productResearchPageEnabled: true,
4241
assetsRoot: '/.assets',
4342
deployType: 'dev',

client/web/src/components/FilteredConnection/hooks/useShowMorePagination.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ interface UseShowMorePaginationConfig<TResult> {
3333
useURL?: boolean
3434
/** Allows modifying how the query interacts with the Apollo cache */
3535
fetchPolicy?: WatchQueryFetchPolicy
36+
/** Allows specifying the Apollo error policy */
37+
errorPolicy?: 'all' | 'none' | 'ignore'
3638
/**
3739
* Set to enable polling of all the nodes currently loaded in the connection.
3840
*
@@ -139,6 +141,7 @@ export const useShowMorePagination = <TResult, TVariables extends {}, TData>({
139141
fetchPolicy: options?.fetchPolicy,
140142
onCompleted: options?.onCompleted,
141143
onError: options?.onError,
144+
errorPolicy: options?.errorPolicy,
142145
})
143146

144147
/**

client/web/src/enterprise/batches/list/BatchChangesChangelogAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CURRENT_VERSION = '5.2'
1919
* After every release, this will be set back to `false`. Chromatic will also verify
2020
* changes to this variable via visual regression testing.
2121
*/
22-
const SHOW_CHANGELOG = true
22+
const SHOW_CHANGELOG = false
2323

2424
interface BatchChangesChangelogAlertProps {
2525
className?: string

0 commit comments

Comments
 (0)