Add Select a Translation Unit command - #14688
Draft
Sean McManus (sean-mcmanus) wants to merge 1 commit into
Draft
Conversation
Copilot started reviewing on behalf of
Sean McManus (sean-mcmanus)
August 17, 2026 20:29
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a command for selecting the translation unit that supplies IntelliSense context.
Changes:
- Registers and localizes the command palette action.
- Adds language-server request and notification plumbing.
- Displays candidates with workspace-relative paths and marks the current selection.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Extension/src/LanguageServer/extension.ts |
Implements translation-unit selection and path mapping. |
Extension/src/LanguageServer/client.ts |
Adds language-server protocol methods and types. |
Extension/package.nls.json |
Adds the localized command title. |
Extension/package.json |
Contributes and conditionally exposes the command. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a Select a Translation Unit command for choosing which source file provides IntelliSense context for the active file. The command displays matching translation-unit candidates in a quick pick and marks the current selection.
Details
Validation