Repository navigation
Add best practices instructions file - #321160
Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits intoJun 12, 2026
Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub instructions document under .github/instructions (scoped to src/vs/**) that captures best-practice guidance for reusing existing VS Code UI primitives/patterns, resolving editor/session action context correctly, and comparing/handling URIs using shared utilities.
Changes:
- Add guidance to reuse shared Button/Action primitives and render actions via the standard toolbar components.
- Document how editor/session-related actions should resolve invocation context (including multi-selection) via
resolveCommandsContext. - Document URI best practices (use
Schemasandresources.tscomparison helpers instead of hardcoded schemes / string comparisons).
Show a summary per file
| File | Description |
|---|---|
| .github/instructions/best-practices.instructions.md | New best-practices instructions covering UI actions/toolbars, editor/session action context, and URI scheme/comparison conventions. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 2
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Benjamin Christopher Simmonds (benibenj)
enabled auto-merge (squash)
June 12, 2026 15:02
TylerLeonhardt
approved these changes
Jun 12, 2026
Benjamin Christopher Simmonds (benibenj)
merged commit Jun 12, 2026
ab7eee2
into
main
25 checks passed
Benjamin Christopher Simmonds (benibenj)
deleted the
agents/next-to-the-coding-guidelines-file-in-the-39ccf7d1
branch
June 12, 2026 15:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new best practices instructions file next to the coding guidelines file in
.github/instructions. It documents conventions for reusing common UI primitives and patterns:ButtonandActiontypes, render via toolbars (MenuWorkbenchToolBar/WorkbenchToolBar), useSeparator.resolveCommandsContext, support multi-selection.Schemasconstants andresources.tscomparison utilities instead of hardcoded scheme strings or string comparison.Co-authored-by: Copilot [email protected]