Compare commits

...

1 Commits

Author SHA1 Message Date
Richard Feldman
a6d45ab41d Update docs to say "edit predictions" 2025-01-31 10:40:05 -05:00
7 changed files with 28 additions and 28 deletions

View File

@@ -506,7 +506,7 @@ fn for_snowflake(
),
Event::InlineCompletion(e) => (
format!(
"Inline Completion {}",
"Edit Prediction {}",
if e.suggestion_accepted {
"Accepted"
} else {
@@ -516,7 +516,7 @@ fn for_snowflake(
serde_json::to_value(e).unwrap(),
),
Event::InlineCompletionRating(e) => (
"Inline Completion Rated".to_string(),
"Edit Prediction Rated".to_string(),
serde_json::to_value(e).unwrap(),
),
Event::Call(e) => {

View File

@@ -4991,8 +4991,8 @@ impl Editor {
.and_then(|file| Some(file.path().extension()?.to_string_lossy().to_string()));
let event_type = match accepted {
true => "Inline Completion Accepted",
false => "Inline Completion Discarded",
true => "Edit Prediction Accepted",
false => "Edit Prediction Discarded",
};
telemetry::event!(
event_type,

View File

@@ -295,7 +295,7 @@ impl Render for QuickActionBar {
);
menu = menu.toggleable_entry(
"Inline Completions",
"Edit Predictions",
inline_completions_enabled,
IconPosition::Start,
Some(editor::actions::ToggleInlineCompletions.boxed_clone()),

View File

@@ -249,7 +249,7 @@ impl Render for ZedPredictModal {
if self.user_store.read(cx).current_user().is_some() {
let copy = match self.sign_in_status {
SignInStatus::Idle => "Get accurate and helpful edit predictions at every keystroke. To set Zed as your inline completions provider, ensure you:",
SignInStatus::Idle => "Get accurate and helpful edit predictions at every keystroke. To set Zed as your edit prediction provider, ensure you:",
SignInStatus::SignedIn => "Almost there! Ensure you:",
SignInStatus::Waiting => unreachable!(),
};
@@ -291,7 +291,7 @@ impl Render for ZedPredictModal {
)
} else {
base.child(
Label::new("To set Zed as your inline completions provider, please sign in.")
Label::new("To set Zed as your edit prediction provider, please sign in.")
.color(Color::Muted),
)
.child(

View File

@@ -858,7 +858,7 @@ and then another
) {
self.rated_completions.insert(completion.id);
telemetry::event!(
"Inline Completion Rated",
"Edit Prediction Rated",
rating,
input_events = completion.input_events,
input_excerpt = completion.input_excerpt,

View File

@@ -3,7 +3,7 @@
Zed supports supports two sources for completions:
1. "Code Completions" provided by Language Servers (LSPs) automatically installed by Zed or via [Zed Language Extensions](languages.md).
2. "Inline Completions" provided by external APIs like [GitHub Copilot](#github-copilot) or [Supermaven](#supermaven).
2. "Edit Predictions" provided by [Zed AI](https://zed.dev/ai), or by third-party services like [GitHub Copilot](#github-copilot) or [Supermaven](#supermaven).
## Code Completions
@@ -20,7 +20,7 @@ For more information, see:
- [Configuring Supported Languages](./configuring-languages.md)
- [List of Zed Supported Languages](./languages.md).
## Configuring Inline Completions
## Configuring Edit Prediction
### GitHub Copilot
@@ -50,13 +50,13 @@ To use Supermaven, add the following to your `settings.json`:
You should be able to sign-in to Supermaven by clicking on the Supermaven icon in the status bar and following the setup instructions.
## Using Inline completions
## Using Edit Prediction
Once you have configured an Inline Completions provider, you can start using inline completions in your code. Inline completions will appear as you type, and you can accept them by pressing `tab` or `enter` or hide them by pressing `esc`.
Once you have configured an Edit Prediction provider, you can start using edit predictions in your code. Edit predictions will appear as you type, and you can accept them by pressing `tab` or `enter` or hide them by pressing `esc`.
There a number of actions/shortcuts available to interact with inline completions:
There a number of actions/shortcuts available to interact with edit predictions:
- `editor: accept inline completion` (`tab`): To accept the current inline completion
- `editor: accept edit prediction` (`tab`): To accept the current edit prediction
- `editor: accept partial inline completion` (`cmd-right`): To accept the current inline completion up to the next word boundary
- `editor: show inline completion` (`alt-\`): Trigger a inline completion request manually
- `editor: next inline completion` (`alt-]`): To cycle to the next inline completion
@@ -72,9 +72,9 @@ To disable completions that appear automatically as you type, add the following
}
```
You can trigger inline completions manually by executing `editor: show inline completion` (`alt-\\`).
You can trigger edit predictions manually by executing `editor: show edit prediction` (`alt-\\`).
You can also add this as a language-specific setting in your `settings.json` to disable inline completions for a specific language:
You can also add this as a language-specific setting in your `settings.json` to disable edit predictions for a specific language:
```json
{

View File

@@ -375,10 +375,10 @@ There are two options to choose from:
1. `shell_hook`: Use the shell hook to load direnv. This relies on direnv to activate upon entering the directory. Supports POSIX shells and fish.
2. `direct`: Use `direnv export json` to load direnv. This will load direnv directly without relying on the shell hook and might cause some inconsistencies. This allows direnv to work with any shell.
## Inline Completions
## Edit Predictions
- Description: Settings for inline completions.
- Setting: `inline_completions`
- Description: Settings for edit predictions.
- Setting: `edit_predictions`
- Default:
```json
@@ -401,29 +401,29 @@ There are two options to choose from:
List of `string` values
## Inline Completions Disabled in
## Edit Predictions Disabled in
- Description: A list of language scopes in which inline completions should be disabled.
- Setting: `inline_completions_disabled_in`
- Description: A list of language scopes in which edit predictions should be disabled.
- Setting: `edit_predictions_disabled_in`
- Default: `[]`
**Options**
List of `string` values
1. Don't show inline completions in comments:
1. Don't show edit predictions in comments:
```json
"disabled_in": ["comment"]
```
2. Don't show inline completions in strings and comments:
2. Don't show edit predictions in strings and comments:
```json
"disabled_in": ["comment", "string"]
```
3. Only in Go, don't show inline completions in strings and comments:
3. Only in Go, don't show edit predictions in strings and comments:
```json
{
@@ -1647,10 +1647,10 @@ Or to set a `socks5` proxy:
`boolean` values
## Show Inline Completions
## Show Edit Predictions
- Description: Whether to show inline completions as you type or manually by triggering `editor::ShowInlineCompletion`.
- Setting: `show_inline_completions`
- Description: Whether to show edit predictions as you type or manually by triggering `editor::ShowEditPredictions`.
- Setting: `show_edit_predictions`
- Default: `true`
**Options**