Skip to content

Commit 27967f1

Browse files
committed
Remove refactoring tool options from the preset selection quick pick
1 parent d08420b commit 27967f1

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

packages/vscode/src/view/backend/message-handlers/handle-send-prompt.ts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -150,34 +150,6 @@ async function validate_presets(params: {
150150
}
151151

152152
const create_items = () => {
153-
const refactoring_items = !params.is_code_completions_mode
154-
? [
155-
{
156-
label: 'Use refactoring API tool',
157-
kind: vscode.QuickPickItemKind.Default,
158-
command: 'refactor',
159-
type: 'refactoring'
160-
},
161-
{
162-
label: 'Use refactoring API tool using...',
163-
kind: vscode.QuickPickItemKind.Default,
164-
command: 'refactorUsing',
165-
type: 'refactoring'
166-
},
167-
{
168-
label: 'My Presets',
169-
kind: vscode.QuickPickItemKind.Separator,
170-
type: 'separator'
171-
}
172-
]
173-
: [
174-
{
175-
label: 'My Presets',
176-
kind: vscode.QuickPickItemKind.Separator,
177-
type: 'separator'
178-
}
179-
]
180-
181153
const preset_items = available_presets.map((preset, index) => {
182154
const buttons = []
183155

@@ -202,7 +174,7 @@ async function validate_presets(params: {
202174
}
203175
})
204176

205-
return [...refactoring_items, ...preset_items]
177+
return preset_items
206178
}
207179

208180
const quick_pick = vscode.window.createQuickPick()

0 commit comments

Comments
 (0)