Move files into Copilot CLI specific folders#312266
Merged
DonJayamanne merged 4 commits intomainfrom Apr 24, 2026
Merged
Conversation
Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Copilot extension’s Copilot CLI chat-session implementation to reflect a “Copilot CLI specific folders” layout by fixing relative import paths after the re-organization.
Changes:
- Updated relative imports in Copilot CLI
vscode-nodesources to referenceplatform/,util/, and sharedchatSessions/commonmodules correctly. - Updated Vitest specs’ imports and
vi.mock(...)module paths to match the new folder structure.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/copilotCLISDKUpgrade.spec.ts | Adjusts test imports to correct platform and Copilot CLI node shim paths. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/copilotCLICustomizationProvider.spec.ts | Fixes test imports to point at moved platform, util, and Copilot CLI node modules. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/chatSessionMetadataStoreImpl.spec.ts | Updates test imports and vi.mock target path for cliHelpers after folder changes. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/chatSessionInitializer.spec.ts | Updates initializer test imports to correct platform, util, and shared chatSessions paths. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/askUserQuestionHandler.spec.ts | Fixes tool/test imports and typed mock import path for ILogService. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/copilotCLIPromptReferences.ts | Updates util/* and vscodeTypes imports to match the new relative depth. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/copilotCLICustomizationProvider.ts | Fixes platform/*, util/*, and Copilot CLI node imports for the new folder layout. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/copilotCLIChatSessionInitializer.ts | Adjusts imports for platform/*, util/*, shared chatSessions/common, and Copilot CLI node modules. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/chatSessionMetadataStoreImpl.ts | Updates imports for platform/*, util/*, shared chatSessions/common, and Copilot CLI node helpers. |
| extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/askUserQuestionHandler.ts | Fixes imports for platform/*, util/*, tools, and Copilot CLI node user input helpers. |
Copilot's findings
- Files reviewed: 10/10 changed files
- Comments generated: 0
justschen
approved these changes
Apr 24, 2026
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.
Co-authored-by: Copilot copilot@github.com