Skip to content

Commit 8fbb7f5

Browse files
legomushroomNikolaRHristov
authored andcommitted
update unit tests of the prompts service
1 parent 1d963fa commit 8fbb7f5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ suite('PromptsService', () => {
18011801
'---',
18021802
'description: "Another file description."',
18031803
'tools: [\'my-tool3\', false, "my-tool2" ]',
1804-
'include: "**/*.tsx"',
1804+
'applyTo: "**/*.tsx"',
18051805
'---',
18061806
`[](${rootFolder}/folder1/some-other-folder)`,
18071807
'another-file.instructions.md contents\t [#file:file.txt](../file.txt)',
@@ -1831,14 +1831,14 @@ suite('PromptsService', () => {
18311831
description: 'Root prompt description.',
18321832
tools: ['my-tool1'],
18331833
mode: 'agent',
1834-
include: undefined,
1834+
applyTo: undefined,
18351835
},
18361836
children: [
18371837
{
18381838
uri: URI.joinPath(rootFolderUri, 'folder1/file3.prompt.md'),
18391839
metadata: {
18401840
description: undefined,
1841-
include: undefined,
1841+
applyTo: undefined,
18421842
tools: ['my-tool1'],
18431843
mode: 'agent',
18441844
},
@@ -1849,7 +1849,7 @@ suite('PromptsService', () => {
18491849
description: 'Another file description.',
18501850
tools: ['my-tool3', 'my-tool2'],
18511851
mode: 'agent',
1852-
include: '**/*.tsx',
1852+
applyTo: '**/*.tsx',
18531853
},
18541854
children: undefined,
18551855
},
@@ -1860,7 +1860,7 @@ suite('PromptsService', () => {
18601860
metadata: {
18611861
tools: ['my-tool1', 'my-tool2'],
18621862
description: 'File 4 splendid description.',
1863-
include: undefined,
1863+
applyTo: undefined,
18641864
mode: 'agent',
18651865
},
18661866
children: undefined,
@@ -1941,7 +1941,7 @@ suite('PromptsService', () => {
19411941
contents: [
19421942
'---',
19431943
'description: \'Instructions file 1.\'',
1944-
'include: "**/*.tsx"',
1944+
'applyTo: "**/*.tsx"',
19451945
'---',
19461946
'Some instructions 1 contents.',
19471947
],
@@ -1951,7 +1951,7 @@ suite('PromptsService', () => {
19511951
contents: [
19521952
'---',
19531953
'description: \'Instructions file 2.\'',
1954-
'include: "**/folder1/*.tsx"',
1954+
'applyTo: "**/folder1/*.tsx"',
19551955
'---',
19561956
'Some instructions 2 contents.',
19571957
],
@@ -1961,7 +1961,7 @@ suite('PromptsService', () => {
19611961
contents: [
19621962
'---',
19631963
'description: \'Instructions file 3.\'',
1964-
'include: "**/folder2/*.tsx"',
1964+
'applyTo: "**/folder2/*.tsx"',
19651965
'---',
19661966
'Some instructions 3 contents.',
19671967
],
@@ -1971,7 +1971,7 @@ suite('PromptsService', () => {
19711971
contents: [
19721972
'---',
19731973
'description: \'Instructions file 4.\'',
1974-
'include: "src/build/*.tsx"',
1974+
'applyTo: "src/build/*.tsx"',
19751975
'---',
19761976
'Some instructions 4 contents.',
19771977
],
@@ -2009,7 +2009,7 @@ suite('PromptsService', () => {
20092009
contents: [
20102010
'---',
20112011
'description: \'Instructions file 10.\'',
2012-
'include: "**/folder1/*.tsx"',
2012+
'applyTo: "**/folder1/*.tsx"',
20132013
'---',
20142014
'Some instructions 10 contents.',
20152015
],
@@ -2019,7 +2019,7 @@ suite('PromptsService', () => {
20192019
contents: [
20202020
'---',
20212021
'description: \'Instructions file 11.\'',
2022-
'include: "**/folder1/*.py"',
2022+
'applyTo: "**/folder1/*.py"',
20232023
'---',
20242024
'Some instructions 11 contents.',
20252025
],

0 commit comments

Comments
 (0)