You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-notes/v1_96.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,9 +133,9 @@ TODO@Tyriar
133
133
134
134
### Performance improvements for `@workspace`
135
135
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.
137
137
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).
139
139
140
140
## Accessibility
141
141
@@ -374,17 +374,18 @@ Our JavaScript and TypeScript support now uses TypeScript 5.7. This major update
374
374
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.
375
375
376
376
### 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:
378
377
379
-
<videosrc="images/1_96/jsts-update-imports-paste.mp4"title="Imports being automatically updated when "autoplayloopcontrolsmuted></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.
380
379
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
+
<videosrc="images/1_96/jsts-update-imports-paste.mp4"title="Imports are automatically updated when pasting code between files in JS and TS."autoplayloopcontrolsmuted></video>
382
381
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!
384
383
385
-

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.
386
385
387
-
If you prefer always pasting with imports, you can [use the new `editor.pasteAs.preferences` setting](#configure-paste-and-drop-behavior):
386
+

387
+
388
+
If you prefer always pasting with imports, you can use the new [`editor.pasteAs.preferences` setting](#configure-paste-and-drop-behavior):
388
389
389
390
```json
390
391
"editor.pasteAs.preferences": [
@@ -428,7 +429,7 @@ If you prefer, you can even do the reverse and make paste with imports the defau
428
429
}
429
430
```
430
431
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)`.
432
433
433
434
## Remote Development
434
435
@@ -619,7 +620,7 @@ To try this out, copy some code and paste it in Inline Chat, Quick Chat, or the
619
620
]
620
621
```
621
622
622
-

623
+

0 commit comments