8000 ComputeAutomaticInstructions: improve prompt by aeschli · Pull Request #251925 · microsoft/vscode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ComputeAutomaticInstructions: improve prompt #251925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -227,19 +227,22 @@ export class ComputeAutomaticInstructions {
continue;
}
const applyTo = metadata?.applyTo;


const description = metadata?.description ?? '';
if (applyTo && applyTo !== '**' && applyTo !== '**/*' && applyTo !== '*') {
entries.push(`Instruction file '${getFilePath(uri)}' contains important rules for all files matching ${metadata.applyTo}.`);
entries.push(`| ${metadata.applyTo} | '${getFilePath(uri)}' | ${description} |`);
}
}
if (entries.length === 0) {
return entries;
}
return [
'The user has provided a list of custopm instruction files that contain rules that need to be followed when modifying or creating new code.',
'Each file comes with a glob pattern that specifies which files the instructions apply to.',
'It is important to follow these instructions when working with the codebase. If the file is not already available as attachment, use the `read_file` tool to acquire it.',
'Here is a list of instruction files that contain rules for modifying or creating new code.',
'These files are important for ensuring that the code is modified or created correctly.',
'Please make sure to follow the rules specified in these files when working with the codebase.',
'If the file is not already available as attachment, use the `read_file` tool to acquire it.',
'Make sure to acquire the instructions before making any changes to the code.',
'| Pattern | File Path | Description |',
'| ------- | --------- | ----------- |',
].concat(entries);
}

Expand Down
Loading
0