mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat(commands): Enable @file processing in TOML commands (#6716)
This commit is contained in:
@@ -491,7 +491,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
description: 'A command from a file',
|
||||
action: async () => ({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the TOML file.',
|
||||
content: [{ text: 'The actual prompt from the TOML file.' }],
|
||||
}),
|
||||
},
|
||||
CommandKind.FILE,
|
||||
@@ -507,7 +507,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
|
||||
expect(actionResult).toEqual({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the TOML file.',
|
||||
content: [{ text: 'The actual prompt from the TOML file.' }],
|
||||
});
|
||||
|
||||
expect(mockAddItem).toHaveBeenCalledWith(
|
||||
@@ -523,7 +523,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
description: 'A command from mcp',
|
||||
action: async () => ({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the mcp command.',
|
||||
content: [{ text: 'The actual prompt from the mcp command.' }],
|
||||
}),
|
||||
},
|
||||
CommandKind.MCP_PROMPT,
|
||||
@@ -539,7 +539,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
|
||||
expect(actionResult).toEqual({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the mcp command.',
|
||||
content: [{ text: 'The actual prompt from the mcp command.' }],
|
||||
});
|
||||
|
||||
expect(mockAddItem).toHaveBeenCalledWith(
|
||||
|
||||
Reference in New Issue
Block a user