Skip to content

chore: inline cleanup#312341

Merged
jrieken merged 2 commits intomainfrom
joh/acute-sole
Apr 24, 2026
Merged

chore: inline cleanup#312341
jrieken merged 2 commits intomainfrom
joh/acute-sole

Conversation

@jrieken
Copy link
Copy Markdown
Member

@jrieken jrieken commented Apr 24, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 13:18
@jrieken jrieken enabled auto-merge (squash) April 24, 2026 13:19
@jrieken jrieken self-assigned this Apr 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs cleanup/refactoring across inline chat (workbench) and Copilot inline features, including moving helper logic into more appropriate modules and tightening some APIs.

Changes:

  • Refactors terminal inline chat to use a terminal-specific InlineChatWidget subclass and removes generic helper APIs from the base widget.
  • Renames/cleans up inline chat configuration and session types, and consolidates contribution registration.
  • Extracts “review edits” functionality into a dedicated chat actions module and adds Copilot inline-edits natural-language detection + InlineChat2 prompt scaffolding.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.ts Introduces TerminalInlineChatWidget subclass and wires terminal chat to it.
src/vs/workbench/contrib/inlineChat/common/inlineChat.ts Removes an unused config key and renames notebookAgent enum member to NotebookAgent.
src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.ts Makes InlineChatWidget abstract and trims APIs; exposes chatWidget directly.
src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.ts Renames IInlineChatSession2 usage to IInlineChatSession and updates config key reference.
src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.ts Renames the session interface and narrows helper function exports.
src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.ts Removes unused editor service injection.
src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.ts Stops self-registering; relies on contribution registration.
src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts Removes unrelated helper functions and updates types/config key usage.
src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.ts Registers notebook/default-model contributions via registerWorkbenchContribution2.
src/vs/workbench/contrib/chat/browser/actions/reviewEdits.ts New home for reviewEdits / reviewNotebookEdits.
src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.ts Updates imports to use extracted reviewEdits module.
src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.ts Updates imports to use extracted reviewEdits module.
src/vs/sessions/contrib/chat/browser/nullInlineChatSessionService.ts Updates to renamed IInlineChatSession interface.
extensions/copilot/src/extension/intents/node/allIntents.ts Points Inline Chat intent registration at inlineChat2 implementation.
extensions/copilot/src/extension/inlineEdits/vscode-node/naturalLanguageHint.ts Adds heuristic for detecting natural-language-dominated lines.
extensions/copilot/src/extension/inlineEdits/vscode-node/inlineCompletionProvider.ts Switches to the new naturalLanguageHint location.
extensions/copilot/src/extension/inlineEdits/test/vscode-node/naturalLanguageHint.test.ts Adds tests for the natural-language heuristic.
extensions/copilot/src/extension/inlineChat2/test/node/inlineChat2Prompt.spec.tsx Fixes/adjusts imports for InlineChat2 prompt tests.
extensions/copilot/src/extension/inlineChat2/node/inlineChatPrompt.tsx Adds InlineChat2 prompt rendering (currently with issues noted in review).
extensions/copilot/src/extension/inlineChat2/node/inlineChatIntent.ts Minor refactor moving edit-tool allowlist into tool-calling helper.
extensions/copilot/src/extension/inlineChat/test/vscode-node/inlineChat.test.ts Removes obsolete skipped E2E inline chat test.

Copilot's findings

  • Files reviewed: 18/21 changed files
  • Comments generated: 1

@jrieken jrieken merged commit a41f4f5 into main Apr 24, 2026
30 checks passed
@jrieken jrieken deleted the joh/acute-sole branch April 24, 2026 13:39
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants