Skip to content

Commit 9c4e90f

Browse files
committed
Simplify code completion commands by removing instruction-specific variants
1 parent ba661bb commit 9c4e90f

3 files changed

Lines changed: 5 additions & 42 deletions

File tree

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ Generate meaningful commit messages precisely adhering to your preferred style.
7676

7777
## <span style="background-color: #fbb100; color: black; padding: 0.2em 0.6em; border-radius: 999px">Commands</span>
7878

79-
### Code completions
80-
81-
- `Code Web Chat: Code Completion` - Get inline autocompletion at the cursor position.
82-
- `Code Web Chat: Code Completion with Instructions` - Get inline autocompletion at the cursor position that follows given instructions.
83-
- `Code Web Chat: Code Completion to Clipboard` - Copy inline autocompletion prompt to clipboard.
84-
- `Code Web Chat: Code Completion with Instructions to Clipboard` - Copy inline autocompletion with instructions prompt to clipboard.
85-
- `Code Web Chat: Code Completion in Chat` - Use chatbot for code completion.
86-
- `Code Web Chat: Code Completion in Chat with...` - Use chatbot for code completion with selected preset.
87-
88-
### Editing context
89-
90-
- `Code Web Chat: Edit Context` - Create and modify files in context based on natural language instructions.
91-
9279
### Handling AI responses
9380

9481
- `Code Web Chat: Apply Chat Response` - Integrate with the codebase copied overall chat response or a single code block.
@@ -99,6 +86,11 @@ Generate meaningful commit messages precisely adhering to your preferred style.
9986
- `Code Web Chat: Copy Context` - Copy selected files and websites to clipboard.
10087
- `Code Web Chat: Apply Context from Clipboard` - Sets the context by parsing file paths from clipboard text.
10188

89+
### Code completions
90+
91+
- `Code Web Chat: Code Completion` - Get code at cursor using API tool.
92+
- `Code Web Chat: Code Completion to Clipboard` - Copy above prompt to clipboard.
93+
10294
### Version Control
10395

10496
- `Code Web Chat: Commit Changes` - Generate a commit message for staged changes and commit.

packages/vscode/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,6 @@
214214
"title": "Code Completion with Instructions",
215215
"category": "Code Web Chat"
216216
},
217-
{
218-
"command": "codeWebChat.codeCompletionWithInstructionsUsing",
219-
"title": "Code Completion with Instructions using...",
220-
"category": "Code Web Chat"
221-
},
222217
{
223218
"command": "codeWebChat.codeCompletionWithInstructionsUsingAutoAccept",
224219
"title": "Code Completion with Instructions using...",

packages/vscode/src/commands/code-completion-commands.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -562,18 +562,6 @@ export function code_completion_commands(
562562
config_index: args?.config_index
563563
})
564564
),
565-
vscode.commands.registerCommand(
566-
'codeWebChat.codeCompletionWithInstructions',
567-
async () =>
568-
perform_code_completion({
569-
file_tree_provider,
570-
open_editors_provider,
571-
context,
572-
with_completion_instructions: true,
573-
auto_accept: false,
574-
show_quick_pick: false
575-
})
576-
),
577565
vscode.commands.registerCommand(
578566
'codeWebChat.codeCompletionWithInstructionsAutoAccept',
579567
async (args?: { completion_instructions?: string }) =>
@@ -625,17 +613,5 @@ export function code_completion_commands(
625613
completion_instructions: args?.completion_instructions
626614
})
627615
),
628-
vscode.commands.registerCommand(
629-
'codeWebChat.codeCompletionWithInstructionsUsing',
630-
async () =>
631-
perform_code_completion({
632-
file_tree_provider,
633-
open_editors_provider,
634-
context,
635-
with_completion_instructions: true,
636-
auto_accept: false,
637-
show_quick_pick: true
638-
})
639-
)
640616
]
641617
}

0 commit comments

Comments
 (0)