File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/vs/workbench/contrib/chat/common/promptSyntax Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,9 @@ export class ComputeAutomaticInstructions {
220
220
if ( metadata ?. promptType !== PromptsType . instructions ) {
221
221
continue ;
222
222
}
223
- const applyTo = metadata ?. applyTo ;
223
+ const applyTo = metadata ?. applyTo ?? '**/*' ;
224
224
const description = metadata ?. description ?? '' ;
225
- if ( applyTo && applyTo !== '**' && applyTo !== '**/*' && applyTo !== '*' ) {
226
- entries . push ( `| ${ metadata . applyTo } | '${ getFilePath ( uri ) } ' | ${ description } |` ) ;
227
- }
225
+ entries . push ( `| '${ getFilePath ( uri ) } ' | ${ applyTo } | ${ description } |` ) ;
228
226
}
229
227
if ( entries . length === 0 ) {
230
228
return entries ;
@@ -237,7 +235,7 @@ export class ComputeAutomaticInstructions {
237
235
'Please make sure to follow the rules specified in these files when working with the codebase.' ,
238
236
`If the file is not already available as attachment, use the \`${ toolName } \` tool to acquire it.` ,
239
237
'Make sure to acquire the instructions before making any changes to the code.' ,
240
- '| Pattern | File Path | Description |' ,
238
+ '| File | Applies To | Description |' ,
241
239
'| ------- | --------- | ----------- |' ,
242
240
] . concat ( entries ) ;
243
241
}
You can’t perform that action at this time.
0 commit comments