address todo items and cleanup

This commit is contained in:
Oleg Solomko
2025-04-16 17:11:24 -07:00
parent 240b8c2cbe
commit c30cef8c3f
2 changed files with 3 additions and 9 deletions

View File

@@ -60,13 +60,10 @@ class SaveToPromptAction extends Action2 {
accessor: ServicesAccessor,
options: ISaveToPromptActionOptions,
): Promise<IEditorPane> {
const logPrefix = 'save to prompt';
const logService = accessor.get(ILogService);
const editorService = accessor.get(IEditorService);
// const untitledEditorService = accessor.get(IUntitledTextEditorService);
// TODO: @legomushroom
// TODO: @legomushroom - use the copilot output channel for logging
const logPrefix = 'save prompt action';
const { chat } = options;
const { viewModel } = chat;
@@ -222,11 +219,9 @@ const renderPrompt = (
return result.join('\n');
};
/**
* Render the `tools` metadata inside prompt header.
*/
// TODO: @legomushroom - re-running /save command does not find the correct tools
const renderTools = (
tools: Set<string>,
): string => {

View File

@@ -506,8 +506,7 @@ class ChatSlashStaticSlashCommandsContribution extends Disposable {
this._store.add(slashCommandService.registerSlashCommand({
command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
detail: nls.localize('save-chat-to-prompt-file', "Save chat to a prompt file"),
// TODO: @legomushroom - reuse the command name constant?
sortText: 'z3_save',
sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
executeImmediately: true,
locations: [ChatAgentLocation.Panel]
}, async () => {