Skip to content

Commit 06bf1d5

Browse files
authored
rename 'insert at cursor' to 'apply in editor' (microsoft#217376)
1 parent 2a106ad commit 06bf1d5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/vs/editor/common/languages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ export interface MappedEditsProvider {
22622262
*
22632263
* @param document The document to provide mapped edits for.
22642264
* @param codeBlocks Code blocks that come from an LLM's reply.
2265-
* "Insert at cursor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
2265+
* "Apply in Editor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
22662266
* @param context The context for providing mapped edits.
22672267
* @param token A cancellation token.
22682268
* @returns A provider result of text edits.

src/vs/monaco.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8065,7 +8065,7 @@ declare namespace monaco.languages {
80658065
*
80668066
* @param document The document to provide mapped edits for.
80678067
* @param codeBlocks Code blocks that come from an LLM's reply.
8068-
* "Insert at cursor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
8068+
* "Apply in Editor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
80698069
* @param context The context for providing mapped edits.
80708070
* @param token A cancellation token.
80718071
* @returns A provider result of text edits.

src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function registerChatCodeBlockActions() {
184184
constructor() {
185185
super({
186186
id: 'workbench.action.chat.insertCodeBlock',
187-
title: localize2('interactive.insertCodeBlock.label', "Insert at Cursor"),
187+
title: localize2('interactive.insertCodeBlock.label', "Apply in Editor"),
188188
precondition: CONTEXT_CHAT_ENABLED,
189189
f1: true,
190190
category: CHAT_CATEGORY,

src/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare module 'vscode' {
2323
* Provide mapped edits for a given document.
2424
* @param document The document to provide mapped edits for.
2525
* @param codeBlocks Code blocks that come from an LLM's reply.
26-
* "Insert at cursor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
26+
* "Apply in Editor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
2727
* @param context The context for providing mapped edits.
2828
* @param token A cancellation token.
2929
* @returns A provider result of text edits.

0 commit comments

Comments
 (0)