Skip to content

Commit 6a9fe87

Browse files
committed
Fix chat fig completions tests
1 parent 73f5774 commit 6a9fe87

File tree

1 file changed

+4
-3
lines changed
  • extensions/terminal-suggest/src/test/completions

1 file changed

+4
-3
lines changed

extensions/terminal-suggest/src/test/completions/code.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const codeSpecOptionsAndSubcommands = [
6060
'--version',
6161
'--wait',
6262
'tunnel',
63-
'chat',
63+
'chat [<prompt>]',
6464
'serve-web',
6565
'help',
6666
'status',
@@ -72,6 +72,7 @@ export function createCodeTestSpecs(executable: string): ITestSpec[] {
7272
const categoryOptions = ['azure', 'data science', 'debuggers', 'extension packs', 'education', 'formatters', 'keymaps', 'language packs', 'linters', 'machine learning', 'notebooks', 'programming languages', 'scm providers', 'snippets', 'testing', 'themes', 'visualization', 'other'];
7373
const logOptions = ['critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'];
7474
const syncOptions = ['on', 'off'];
75+
const chatOptions = ['--add-file <file>', '--help', '--mode <mode>', '-a <file>', '-h', '-m <mode>'];
7576

7677
const typingTests: ITestSpec[] = [];
7778
for (let i = 1; i < executable.length; i++) {
@@ -121,7 +122,7 @@ export function createCodeTestSpecs(executable: string): ITestSpec[] {
121122
{ input: `${executable} --category a|`, expectedCompletions: categoryOptions },
122123

123124
// Chat subcommand tests
124-
{ input: `${executable} chat |` },
125+
{ input: `${executable} chat |`, expectedCompletions: chatOptions },
125126
{ input: `${executable} chat --mode |`, expectedCompletions: ['agent', 'ask', 'edit'] },
126127
{ input: `${executable} chat --add-file |`, expectedResourceRequests: { type: 'files', cwd: testPaths.cwd } },
127128

@@ -183,7 +184,7 @@ export function createCodeTunnelTestSpecs(executable: string): ITestSpec[] {
183184
'-s',
184185
'-v',
185186
'-w',
186-
'chat',
187+
'chat [<prompt>]',
187188
'ext',
188189
'help',
189190
'serve-web',

0 commit comments

Comments
 (0)