Skip to content

Commit acc9a50

Browse files
authored
assistant: rename the /quarto command to /exportQuarto (#8497)
### Summary - addresses #8433 - renames the chat command from `/quarto` to `/exportQuarto` to better align with the command behaviour ### Release Notes #### Bug Fixes - Assistant: renamed chat command from `/quarto` to `/exportQuarto` (#8433) ### QA Notes @:assistant The chat command is now `/exportQuarto` and should not be included in the welcome screen anymore (only `/help` should be suggested).
1 parent 5c02089 commit acc9a50

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

extensions/positron-assistant/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"isDefault": true,
3333
"commands": [
3434
{
35-
"name": "quarto",
36-
"description": "%chatParticipants.commands.quarto.description%"
35+
"name": "exportQuarto",
36+
"description": "%chatParticipants.commands.exportQuarto.description%"
3737
}
3838
],
3939
"locations": [

extensions/positron-assistant/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"chatParticipants.ask.description": "Ask Assistant",
1515
"chatParticipants.agent.description": "Complete tasks in your workspace",
1616
"chatParticipants.edit.description": "Edit files in your workspace",
17-
"chatParticipants.commands.quarto.description": "Convert the conversation so far into a new Quarto document.",
17+
"chatParticipants.commands.exportQuarto.description": "Export the conversation so far into a new Quarto document.",
1818
"configuration.title": "Positron Assistant",
1919
"configuration.enable.markdownDescription": "Enable [Positron Assistant](https://positron.posit.co/assistant), an AI assistant for Positron.",
2020
"configuration.toolDetails.enable": "Enable tool call input and output details in the chat view. Must be enabled to include tool call details in the chat export.",

extensions/positron-assistant/src/commands/quarto.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import { toLanguageModelChatMessage } from '../utils';
1111

1212
const mdDir = `${EXTENSION_ROOT_DIR}/src/md/`;
1313

14+
export const EXPORT_QUARTO_COMMAND = 'exportQuarto';
15+
1416
/**
15-
* Handler for the custom chat participant command `/quarto`.
17+
* Handler for the custom chat participant command `/exportQuarto`.
1618
*/
1719
export async function quartoHandler(
1820
request: vscode.ChatRequest,

extensions/positron-assistant/src/participants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as xml from './xml.js';
1111

1212
import { MARKDOWN_DIR, TOOL_TAG_REQUIRES_WORKSPACE } from './constants';
1313
import { isChatImageMimeType, isTextEditRequest, isWorkspaceOpen, languageModelCacheBreakpointPart, toLanguageModelChatMessage, uriToString } from './utils';
14-
import { quartoHandler } from './commands/quarto';
14+
import { EXPORT_QUARTO_COMMAND, quartoHandler } from './commands/quarto';
1515
import { PositronAssistantToolName } from './types.js';
1616
import { StreamingTagLexer } from './streamingTagLexer.js';
1717
import { ReplaceStringProcessor } from './replaceStringProcessor.js';
@@ -172,7 +172,7 @@ abstract class PositronAssistantParticipant implements IPositronAssistantPartici
172172
// Select request handler based on the command issued by the user for this request
173173
try {
174174
switch (request.command) {
175-
case 'quarto':
175+
case EXPORT_QUARTO_COMMAND:
176176
return await quartoHandler(request, context, response, token);
177177
default:
178178
return await this.defaultRequestHandler(request, context, response, token);

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ Always verify results. AI assistants can sometimes produce incorrect code.`);
770770
771771
Click on $(attach) or type \`#\` to add context, such as files to your chat.
772772
773-
Type \`/\` to use predefined commands such as \`/help\` or \`/quarto\`.`,
773+
Type \`/\` to use predefined commands such as \`/help\`.`,
774774
), { supportThemeIcons: true, isTrusted: true });
775775
welcomeText = welcomeText.replace('{guide-link}', `[${guideLinkMessage}](https://positron.posit.co/assistant)`);
776776
}

0 commit comments

Comments
 (0)