Skip to content

Update cpp-language-service-tools.instructions#1917

Open
DavidARaygoza wants to merge 1 commit into
github:stagedfrom
DavidARaygoza:dev/davidraygoza/CppLSToolsInstructions
Open

Update cpp-language-service-tools.instructions#1917
DavidARaygoza wants to merge 1 commit into
github:stagedfrom
DavidARaygoza:dev/davidraygoza/CppLSToolsInstructions

Conversation

@DavidARaygoza

@DavidARaygoza DavidARaygoza commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings June 4, 2026 19:50

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR targets main, but PRs should target staged.

The main branch is auto-published from staged and should not receive direct PRs.
Please close this PR and re-open it against the staged branch.

You can change the base branch using the Edit button at the top of this PR,
or run: gh pr edit 1917 --base staged

@github-actions github-actions Bot added instructions PR touches instructions targets-main PR targets main instead of staged labels Jun 4, 2026
@DavidARaygoza DavidARaygoza changed the base branch from main to staged June 4, 2026 19:51
@github-actions github-actions Bot removed the targets-main PR targets main instead of staged label Jun 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the C++ language service tool instructions to emphasize semantic tooling by default while allowing text-based fallbacks when necessary.

Changes:

  • Rewords Rule 1 to prefer GetSymbolReferences_CppTools and clarifies fallback usage of text-based tools.
  • Simplifies/reshapes guidance and examples around symbol references and call hierarchy usage.
  • Updates wording throughout to be more precise (e.g., “type information”, “text-based search tools”).
Show a summary per file
File Description
instructions/cpp-language-service-tools.instructions.md Refines guidance for using C++ semantic tools vs text-based search and updates example/workflow text.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 5

Comment on lines +203 to +204
- ✅ Use `read_file` to find line numbers before specifying them### Rule 1: Prefer GetSymbolReferences_CppTools as the default for locating C/C++ Symbol Usages
- ✅ Prefer C++ tools as the default. Rely on text-based search tools only as a fallback if C++ tools are unavailable, fail, or appear incomplete.
### Rule 1: Prefer GetSymbolReferences_CppTools as the default for locating C/C++ Symbol Usages

**NEVER** rely on manual code inspection, `vscode_listCodeUsages`, `grep_search`, or `read_file` to find where a symbol is used.
**DO NOT** rely on text-based search tools such as `vscode_listCodeUsages`, `grep_search`, or `read_file`. Only if GetSymbolReferences_CppTools is unavailable, fails, or appears incomplete, resort to these text-based search tools as a fallback.
- ✅ Call `GetSymbolReferences_CppTools` for ANY symbol usage search
- ✅ Call `GetSymbolCallHierarchy_CppTools` before function signature changes
- ✅ Use `read_file` to find line numbers before specifying them
- ✅ Use `read_file` to find line numbers before specifying them### Rule 1: Prefer GetSymbolReferences_CppTools as the default for locating C/C++ Symbol Usages
Comment on lines 15 to +19
## Mandatory Tool Usage Rules

### Rule 1: ALWAYS Use GetSymbolReferences_CppTools for Symbol Usages
### Rule 1: Prefer GetSymbolReferences_CppTools as the default for locating C/C++ Symbol Usages

**NEVER** rely on manual code inspection, `vscode_listCodeUsages`, `grep_search`, or `read_file` to find where a symbol is used.
**DO NOT** rely on text-based search tools such as `vscode_listCodeUsages`, `grep_search`, or `read_file`. Only if GetSymbolReferences_CppTools is unavailable, fails, or appears incomplete, resort to these text-based search tools as a fallback.
Comment on lines 88 to +90
1. **First attempt**: Symbol name only
2. **If ambiguous**: Symbol name + file path
3. **If still ambiguous**: Symbol name + file path + line number (after using `read_file`)
3. **If still ambiguous**: Symbol name + file path + line number (after using `read_file` workflow mentioned above)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

instructions PR touches instructions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants