Skip to content

Commit 3ed33cc

Browse files
committed
Edit pass
1 parent e6961ac commit 3ed33cc

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

release-notes/v1_96.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ TODO@Tyriar
133133

134134
### Performance improvements for `@workspace`
135135

136-
When you use [`@workspace`](../docs/copilot/workspace-context.md) to ask Copilot about your currently opened workspace, we first need to narrow the workspace down into a set of relevant code snippets that we can hand off to Copilot as context. If your workspaces is backed by a GitHub repo, we can find these relevant snippets quickly by using Github code search. However as the code search index tracks the main branch of your repository, we couldn't rely on it for local changes or when on a branch.
136+
When you use [`@workspace`](https://code.visualstudio.com/docs/copilot/workspace-context) to ask Copilot about your currently opened workspace, we first need to narrow the workspace down into a set of relevant code snippets that we can hand off to Copilot as context. If your workspaces is backed by a GitHub repo, we can find these relevant snippets quickly by using Github code search. However, as the code search index tracks the main branch of your repository, we couldn't rely on it for local changes or when on a branch.
137137

138-
This iteration, we've worked bring the speed benefits of Github search to branches and pull requests. This means that we now search both the remote index based on your repo's main branch, along with searching any locally changed files. We then merge these results together, giving Copilot a fast and up to date set of snippets to work with. You can read more about Github code search and how to enable it [here](https://docs.github.com/en/enterprise-cloud@latest/copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom#asking-a-question-about-a-specific-repository-file-or-symbol).
138+
This milestone, we've worked bring the speed benefits of Github search to branches and pull requests. This means that we now search both the remote index based on your repo's main branch, along with searching any locally changed files. We then merge these results together, giving Copilot a fast and up to date set of snippets to work with. You can read more about [Github code search and how to enable it](https://docs.github.com/en/enterprise-cloud@latest/copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom#asking-a-question-about-a-specific-repository-file-or-symbol).
139139

140140
## Accessibility
141141

@@ -374,17 +374,18 @@ Our JavaScript and TypeScript support now uses TypeScript 5.7. This major update
374374
You can read all about the TypeScript 5.7 release on the [TypeScript blog](https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/). We've also included a few tooling highlights in the following sections.
375375

376376
### Paste with imports for JavaScript and TypeScript
377-
Tired of having to add imports after moving code between files? Try the 'paste with imports' feature for TypeScript 5.7+. Now whenever you copy and paste code between JavaScript or TypeScript, VS Code can add imports for the pasted code:
378377

379-
<video src="images/1_96/jsts-update-imports-paste.mp4" title="Imports being automatically updated when " autoplay loop controls muted></video>
378+
Tired of having to add imports after moving code between files? Try the Paste with imports feature for TypeScript 5.7+. Now whenever you copy and paste code between JavaScript or TypeScript, VS Code can add imports for the pasted code.
380379

381-
Notice how it not only added imports, it even added a new export for a local variable that was used in the pasted code!
380+
<video src="images/1_96/jsts-update-imports-paste.mp4" title="Imports are automatically updated when pasting code between files in JS and TS." autoplay loop controls muted></video>
382381

383-
While we think this feature will be a huge time saver, we also are sensitive to disrupting your existing workflow. That's why by default we've kept it so copy and paste will always insert just the pasted text. If a `paste with imports` edit is available, you'll then see the paste widget which lets you select the `paste with imports` edit:
382+
Notice how not only imports are added, even a new export was added for a local variable that was used in the pasted code!
384383

385-
![alt text](images/1_96/jsts-paste-widget.png)
384+
While we think this feature is a huge time saver, we also are sensitive to disrupting your existing workflow. That's why, by default, we've kept it so copy and paste always inserts just the pasted text. If a `paste with imports` edit is available, you then see the paste control, which lets you select the `paste with imports` edit.
386385

387-
If you prefer always pasting with imports, you can [use the new `editor.pasteAs.preferences` setting](#configure-paste-and-drop-behavior):
386+
![Paste control that shows options to insert plain text or paste with imports.](images/1_96/jsts-paste-widget.png)
387+
388+
If you prefer always pasting with imports, you can use the new [`editor.pasteAs.preferences` setting](#configure-paste-and-drop-behavior):
388389

389390
```json
390391
"editor.pasteAs.preferences": [
@@ -428,7 +429,7 @@ If you prefer, you can even do the reverse and make paste with imports the defau
428429
}
429430
```
430431

431-
Finally if you want to fully disable `paste with imports`, you can use `setting(typescript.updateImportsOnPaste.enabled)` and `setting(javascript.updateImportsOnPaste.enabled)`.
432+
Finally, if you want to fully disable `paste with imports`, you can use `setting(typescript.updateImportsOnPaste.enabled)` and `setting(javascript.updateImportsOnPaste.enabled)`.
432433

433434
## Remote Development
434435

@@ -619,7 +620,7 @@ To try this out, copy some code and paste it in Inline Chat, Quick Chat, or the
619620
]
620621
```
621622

622-
![Attaching code as context in Copilot Chat using the paste widget.](images/1_96/paste-code-context.gif)
623+
![Attaching code as context in Copilot Chat using the paste control.](images/1_96/paste-code-context.gif)
623624

624625
### Terminal completions for more shells
625626

0 commit comments

Comments
 (0)