Skip to content

Commit 085b3d2

Browse files
committed
Rename the referenceInChat command and related files to referenceInPrompt
1 parent 4f2b575 commit 085b3d2

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎packages/vscode/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@
258258
"title": "Delete"
259259
},
260260
{
261-
"command": "codeWebChat.referenceInChat",
262-
"title": "Reference in Chat",
261+
"command": "codeWebChat.referenceInPrompt",
262+
"title": "Reference in Prompt",
263263
"category": "Code Web Chat"
264264
},
265265
{
@@ -346,7 +346,7 @@
346346
"when": "false"
347347
},
348348
{
349-
"command": "codeWebChat.referenceInChat",
349+
"command": "codeWebChat.referenceInPrompt",
350350
"when": "false"
351351
},
352352
{
@@ -476,7 +476,7 @@
476476
"group": "1_modification@2"
477477
},
478478
{
479-
"command": "codeWebChat.referenceInChat",
479+
"command": "codeWebChat.referenceInPrompt",
480480
"when": "view == codeWebChatViewOpenEditors && viewItem == openEditor",
481481
"group": "1_modification@3"
482482
},
@@ -501,7 +501,7 @@
501501
"group": "1_modification@2"
502502
},
503503
{
504-
"command": "codeWebChat.referenceInChat",
504+
"command": "codeWebChat.referenceInPrompt",
505505
"when": "view == codeWebChatViewWorkspace || view == codeWebChatViewContext",
506506
"group": "1_modification@3"
507507
}

‎packages/vscode/src/commands/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export * from './new-file-command'
99
export * from './new-folder-command'
1010
export * from './open-file-from-workspace-command'
1111
export * from './open-url-command'
12-
export * from './reference-in-chat-command'
12+
export * from './reference-in-prompt-command'
1313
export * from './rename-command'
1414
export * from './save-all-command'
1515
export * from './save-context-command'

packages/vscode/src/commands/reference-in-chat-command.ts renamed to packages/vscode/src/commands/reference-in-prompt-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { FileItem } from '../context/providers/workspace-provider'
55
import { dictionary } from '@shared/constants/dictionary'
66
import { PanelProvider } from '@/views/panel/backend/panel-provider'
77

8-
export const reference_in_chat_command = (
8+
export const reference_in_prompt_command = (
99
panel_provider: PanelProvider | undefined,
1010
workspace_provider: WorkspaceProvider | undefined
1111
) => {
1212
return vscode.commands.registerCommand(
13-
'codeWebChat.referenceInChat',
13+
'codeWebChat.referenceInPrompt',
1414
async (uri: FileItem) => {
1515
if (!panel_provider || !workspace_provider) {
1616
return

‎packages/vscode/src/extension.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
rename_command,
2323
delete_command,
2424
save_context_command,
25-
reference_in_chat_command,
25+
reference_in_prompt_command,
2626
open_url_command
2727
} from './commands'
2828
import { SettingsProvider } from './views/settings/backend/settings-provider'
@@ -66,7 +66,7 @@ export async function activate(context: vscode.ExtensionContext) {
6666
}
6767
}
6868
),
69-
reference_in_chat_command(panel_provider, workspace_provider),
69+
reference_in_prompt_command(panel_provider, workspace_provider),
7070
apply_chat_response_command(context, panel_provider, workspace_provider),
7171
...code_completion_commands(
7272
workspace_provider,

0 commit comments

Comments
 (0)