Skip to content

Commit 72ac2fd

Browse files
authored
Merge branch 'main' into sg-next-oct2024
2 parents 7b754fa + 1028bb0 commit 72ac2fd

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

docs/admin/deploy/docker-compose/upgrade.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ This document describes the process to update a Docker Compose Sourcegraph insta
1010

1111
A [standard upgrade](/admin/updates/#upgrade-types) occurs between a Sourcegraph version and the minor or major version released immediately after it. If you would like to jump forward several versions, you must perform a [multi-version upgrade](#multi-version-upgrades) instead.
1212

13-
If you've [configured Docker Compose with a release branch](/admin/deploy/docker-compose/#step-1-prepare-the-deployment-repository), please merge the upstream release tag for the next minor version into your `release` branch. In the following example, the release branch is being upgraded to {CURRENT_VERSION_STRING}.
13+
If you've [configured Docker Compose with a release branch](/admin/deploy/docker-compose/#step-1-prepare-the-deployment-repository), please merge the upstream release tag for the next minor version into your `release` branch.
14+
15+
In the following example, the release branch is being upgraded to {CURRENT_VERSION_STRING()}.
1416

1517
```sh
1618
# first, checkout the release branch
@@ -26,7 +28,7 @@ git merge {CURRENT_VERSION}
2628

2729
For each conflict, you need to reconcile any customizations you made with the updates from the new version. Use the information you gathered earlier from the change log and changes list to interpret the merge conflict and to ensure that it doesn't over-write your customizations. You may need to update your customizations to accommodate the new version.
2830

29-
> NOTE: If you have made no changes or only very minimal changes to your configuration, you can also ask git to always select incoming changes in the event of merge conflicts. In the following example merges will be accepted from the upstream version {CURREN_VERSION_STRING()}:
31+
> NOTE: If you have made no changes or only very minimal changes to your configuration, you can also ask git to always select incoming changes in the event of merge conflicts. In the following example merges will be accepted from the upstream version {CURRENT_VERSION_STRING()}:
3032
>
3133
> `git merge -X theirs {CURRENT_VERSION_STRING}`
3234
>

docs/cody/clients/install-vscode.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,13 @@ For customization and advanced use cases, you can create **Custom Commands** tai
273273

274274
## Smart Apply code suggestions
275275

276-
Cody lets you dynamically insert code from chat into your files with **Smart Apply**. Every time Cody provides you with a code suggestion, you can click the **Apply** button. Cody will then analyze your open code file, find where that relevant code should live, and add a diff.
276+
Cody lets you dynamically insert code from chat into your files with **Smart Apply**. Every time Cody provides you with a code suggestion, you can click the **Apply** button. Cody will then analyze your open code file, find where that relevant code should live, and add a diff. For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
277277

278-
For chat messages where Cody provides multiple code suggestions, you can apply each in sequence to go from chat suggestions to written code.
278+
Smart Apply also supports the executing of commands in the terminal. When you ask Cody a question related to terminal commands, you can now execute the suggestion in your terminal by clicking the `Execute` button in the chat window.
279+
280+
<video width="1920" height="1080" loop playsInline controls style={{ width: '100%', height: 'auto', aspectRatio: '1920 / 1080' }}>
281+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/Media/cody-vscode-1.36-command-execute.mp4" type="video/mp4" />
282+
</video>
279283

280284
## Keyboard shortcuts
281285

docs/cody/clients/model-configuration.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ This requires site-admin privileges. To do so,
4242
```json
4343
{
4444
// [...]
45-
"cody.enabled": true
45+
"cody.enabled": true,
46+
"completions": {
47+
"provider": "sourcegraph"
48+
}
4649
}
4750
```
4851

@@ -319,6 +322,7 @@ The simplest way to configure your Sourcegraph Enterprise would be to add the fo
319322

320323
```json
321324
...
325+
"cody.enabled": true,
322326
"modelConfiguration": {
323327
"sourcegraph": {}
324328
},
@@ -360,6 +364,7 @@ The `"allow"` and `"deny"` fields, are arrays of [model references](#model-confi
360364
The following examples illustrate how to use all these settings in conjunction:
361365

362366
```json
367+
"cody.enabled": true,
363368
"modelConfiguration": {
364369
"sourcegraph": {
365370
"modelFilters": {
@@ -390,6 +395,7 @@ The `"modelConfiguration"` setting also contains a `"defaultModels"` field that
390395

391396
```json
392397
...
398+
"cody.enabled": true,
393399
"modelConfiguration": {
394400
"defaultModels": {
395401
"chat": "anthropic::2023-06-01::claude-3.5-sonnet",
@@ -421,6 +427,7 @@ By defining a provider override in your Sourcegraph site configuration, you are
421427
The following configuration shippet defines a single provider override with the ID `"anthropic"`.
422428

423429
```json
430+
"cody.enabled": true,
424431
"modelConfiguration": {
425432
// Do not use any Sourcegraph-supplied models.
426433
"sourcegraph": null,
@@ -487,6 +494,7 @@ With a provider defined, we can now specify custom models using that provider by
487494
The following configuration snippet defines a custom model, using the `"anthropic"` provider from the previous example.
488495

489496
```json
497+
"cody.enabled": true,
490498
"modelConfiguration": {
491499
...
492500
"modelOverrides": [

0 commit comments

Comments
 (0)