Commit Graph

147637 Commits

Author SHA1 Message Date
Benjamin Pasero da27892b6d sessions - tweaks to empty message (#299034) 2026-03-04 05:57:13 +01:00
Benjamin Pasero a7f87d92f9 sessions - allow to open preview from markdown files (#299047)
* sessions - allow to open preview from markdown files

* Update src/vs/sessions/contrib/markdownPreview/browser/markdownPreview.contribution.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 05:57:06 +01:00
Benjamin Pasero 1f4b2e1a17 modal - focus editor on title click (#299038)
Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
2026-03-04 05:56:40 +01:00
Benjamin Pasero 06c96dcab4 sessions - AI customizations for selfhost (#299053)
* sessions - AI customizations for selfhost

* more

* Update .github/hooks/hooks.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/skills/sessions/SKILL.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 05:56:19 +01:00
Tyler James Leonhardt 605a07d2f8 Don't depend on sessionResource in a few places (#299110)
* Don't depend on sessionResource in a few places

Removes some antipaterns and unused variables.

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 04:48:04 +00:00
Tyler James Leonhardt 757c5ced02 Refactor canResolveChatSession to accept session type (#299112)
refactor: update canResolveChatSession method to accept session type instead of URI
2026-03-04 04:41:19 +00:00
Josh Spicer ea82cfa22b sessions: suggest slash commands on new session page (#299098)
* feat: add dynamic customization slash commands to sessions new-chat page

Add individual prompt/skill files as slash commands in the sessions
window's new-chat input, matching what the customizations view shows.

- Add getFilteredPromptSlashCommands() to IAICustomizationWorkspaceService
  - Core: passthrough to IPromptsService
  - Sessions: filters via applyStorageSourceFilter() per prompt type
- Add second completion provider in SlashCommandHandler for dynamic
  prompt/skill slash commands alongside existing static ones
- Update decorations to recognize and highlight dynamic prompt commands
- Subscribe to onDidChangeSlashCommands for cache refresh
- Fix regex in tryExecuteSlashCommand to support Unicode prompt names

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* feat: expand prompt slash commands into CLI-friendly references

When a user types /my-prompt in the sessions new-chat input, expand it
before sending to: 'Use the prompt file located at [name](uri).' so
the CLI agent can locate and process the prompt file.

- Add tryExpandPromptSlashCommand() to SlashCommandHandler
- Call it in _send() before session.setQuery() to rewrite the query

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-03 19:46:13 -08:00
Pierce Boggan dea917863a Merge pull request #297550 from microsoft/copilot-worktree-2026-02-24T23-48-15
Add copy button to chat
2026-03-03 20:39:52 -07:00
Josh Spicer d4ab06fee0 Commit customization files to main repo for worktree persistence (#299094)
* Commit customization files to main repo for worktree persistence

Customization files (agents, skills, instructions, prompts, hooks) are
now always committed to the main repository so they persist across
worktrees. When a worktree session is active, the file is also copied
and committed there so the running session picks it up immediately.

- Rewrite SessionsAICustomizationWorkspaceService.commitFiles() with
  dual-commit logic (main repo + worktree)
- Add deleteFiles() to IAICustomizationWorkspaceService interface
- Wire delete action to commit removals to git
- Show friendly warning when main repo commit fails from a worktree

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 03:38:45 +00:00
Pierce Boggan 7588065696 Merge branch 'main' into copilot-worktree-2026-02-24T23-48-15 2026-03-03 20:23:34 -07:00
Osvaldo Ortega 76fa9206f1 Merge pull request #299090 from microsoft/osortega/interior-flea
Session window: merge to local
2026-03-03 18:42:59 -08:00
Osvaldo Ortega 68da1933d0 Clean up 2026-03-03 17:55:47 -08:00
Osvaldo Ortega 55dc53f5d3 Review comments 2026-03-03 17:45:30 -08:00
Connor Peet 56ca891d2f api: fix memory leaks in MainThreadManagedSockets (#299093)
* api: fix memory leaks in MainThreadManagedSockets

Refactors MainThreadManagedSockets to properly manage disposables and prevent
memory leaks. Uses DisposableMap for registrations and DisposableStore to
collect socket disposal listeners.

- Changes _registrations from Map<number, IDisposable> to DisposableMap to
  leverage automatic disposal when clearing entries.
- Collects Event.once listeners for socket disposal in a DisposableStore to
  ensure they are properly disposed of when the factory is unregistered.
- Minor whitespace fix on closeRemote method signature.

Refs https://github.com/microsoft/vscode/issues/293200

(Commit message generated by Copilot)

* Better
2026-03-04 01:31:49 +00:00
Rob Lourens 0b270f19fa Don't show Used n references when opening an old session (#299092)
* Don't show Used n references when opening an old session
Alternate fix for #297152

* Don't show Used n references when opening an old session
Alternate fix for #297152
2026-03-04 01:05:30 +00:00
Josh Spicer f7d450f8a3 refactor: update getCliUserSubfolder to clarify prompts exclusion (#299089) 2026-03-04 00:55:09 +00:00
Don Jayamanne fd97f699a2 Disable slash commands for background (#299085) 2026-03-04 00:53:42 +00:00
Pierce Boggan eb8db027a4 Merge branch 'main' into copilot-worktree-2026-02-24T23-48-15 2026-03-03 17:17:37 -07:00
Paul c7d548ad58 Fix /hooks slash command from blocking chat (#299084) 2026-03-04 00:13:51 +00:00
Connor Peet 5e0dc2f064 Merge pull request #299072 from microsoft/connor4312/fix-mcp-gateway-compile-error
Fix compile error in mcpGatewayToolBrokerChannel test
2026-03-03 16:13:06 -08:00
Robo 3dfa3a438f fix: passing js-flags to utility process (#299069) 2026-03-03 23:57:22 +00:00
Osvaldo Ortega bfd958ec2b Rename 2026-03-03 15:50:29 -08:00
Osvaldo Ortega 26b6024286 Using merge strategy 2026-03-03 15:43:40 -08:00
Matt Bierner a31ef0befe Merge pull request #299033 from mjbvz/dev/mjbvz/pleasant-catshark
Reapply 8e445caeff
2026-03-03 15:43:16 -08:00
Connor Peet c4672f21b5 fix merge error 2026-03-03 15:36:06 -08:00
Matt Bierner 5113d689f7 Merge pull request #299071 from mjbvz/dev/mjbvz/blank-anteater
Make sure we specify a tsconfig.browser.json for browser ext
2026-03-03 15:29:00 -08:00
Martin Aeschlimann 1f3ddd891e add play button in prompt config dialog (#297715) 2026-03-03 23:16:37 +00:00
Connor Peet 876317a6fa Merge remote-tracking branch 'origin/main' into connor4312/fix-mcp-gateway-compile-error 2026-03-03 15:13:40 -08:00
Megan Rogge e848b20931 constrain and make chat questions scrollable (#298786) 2026-03-03 23:10:42 +00:00
Megan Rogge c3d549c240 fix chat tip issue (#299070)
fix #299036
2026-03-03 23:01:30 +00:00
Connor Peet f0113db49c tests 2026-03-03 14:59:38 -08:00
David Dossett 2910902834 Use settings icon instead of tools icon in chat input (#299068) 2026-03-03 14:50:38 -08:00
Connor Peet fa59b650b9 fix: use per-entry resolved tracking instead of autorun for _startupGrace invalidation 2026-03-03 14:43:16 -08:00
Connor Peet 6c608bf99d fix: invalidate _startupGrace when cacheState regresses 2026-03-03 14:26:33 -08:00
Josh Spicer 6acf4df97e McpGateway extensive logging (#299043)
* McpGateway extensive logging

* update

* update
2026-03-03 22:21:47 +00:00
Connor Peet c5d8f77e74 chat: combine multiple pending steering messages into single request (#299061)
* chat: combine multiple pending steering messages into single request

When Copilot is running a tool, sending multiple steering messages only sends
the first one. The chatbot waits indefinitely for the remaining messages.

This fix combines all consecutive pending steering messages into a single
request by:

- Adding dequeueAllSteeringRequests() to ChatModel to dequeue all
  consecutive steering messages at the front of the queue
- Refactoring processNextPendingRequest() to handle both steering and queued
  requests through a unified flow that:
  - Combines multiple steering message texts with \n\n separator
  - Merges attachments from all steering messages
  - Re-parses the combined text
  - Sends as a single request to the agent

Fixes https://github.com/microsoft/vscode/issues/298324

(Commit message generated by Copilot)

* comments
2026-03-03 22:17:23 +00:00
Connor Peet e8e300fb10 fix compile error in mcpGatewayToolBrokerChannel test 2026-03-03 14:05:00 -08:00
Matt Bierner 96ab8cdf49 Make sure we specify a tsconfig.browser.json for browser ext 2026-03-03 14:04:54 -08:00
Connor Peet dc2091f396 chat: add manage action gear icon to installed agent plugins (#299052)
* chat: add manage action gear icon to installed agent plugins

Adds a ManagePluginAction that displays a gear icon in the plugin list
for installed plugins. Clicking the gear icon shows a context menu with
management options (enable/disable, open folder, open README, uninstall),
making it consistent with how extensions and MCP servers display their
management UI.

- Adds ManagePluginAction class that provides dropdown menu with
  management actions for installed plugins
- Adds ManagePluginActionViewItem to render the action as a clickable
  gear icon with context menu
- Updates AgentPluginRenderer to include the gear icon in the action bar
  for installed plugins
- Context menu displays enable/disable, open folder, open README, and
  uninstall options

Fixes https://github.com/microsoft/vscode/issues/298461

(Commit message generated by Copilot)

* chat: clean up manage plugin action to follow MCP pattern

- Extract shared getInstalledPluginContextMenuActionGroups() to
  deduplicate action construction between gear menu and context menu
- Restructure ManagePluginAction with createActionViewItem() pattern
  matching MCP/extensions DropDownAction approach
- Add onHide disposal for context menu actions
- Remove redundant getDomNodePagePosition import
2026-03-03 23:01:40 +01:00
Connor Peet 625bdaafde Fix MCP tool validation warning for schemas without properties (#299035)
Per the MCP spec, the 'properties' field in tool inputSchema is optional,
with 'type' being the only required field. However, JSON Schema Draft 7
validation requires 'properties' for object types, causing spurious
warnings like 'Tool foo failed validation: schema must have a properties
object'.

Fix by normalizing the inputSchema to include an empty properties object
when not present.

Fixes #251723
2026-03-03 13:54:16 -08:00
Josh Spicer 560122b099 sessions: add "github.copilot.chat.githubMcpServer.enabled" to config… (#299030)
sessions: add "github.copilot.chat.githubMcpServer.enabled" to config override
2026-03-03 21:47:55 +00:00
Justin Chen 66386a37bd fix chat-input-container padding (#299054) 2026-03-03 21:46:07 +00:00
Connor Peet ea50b9a9c2 chat: support relative paths in plugin locations (#299059)
* chat: support relative paths in plugin locations

- Changes chat.pluginLocations to support home-relative (~/) and
  workspace-relative (./) paths instead of absolute paths
- Adds path normalization and validation in agentPluginServiceImpl
- Updates constants and contribution for plugin path handling
- Ensures settings are shareable across machines by avoiding absolute paths

Fixes https://github.com/microsoft/vscode/issues/297365

(Commit message generated by Copilot)

* comment
2026-03-03 21:40:02 +00:00
Connor Peet d481546f4c dialogs: prevent custom dialogs from overflowing screen vertically (#299048)
Adds max-height: 90vh to the dialog box to prevent it from exceeding the
viewport height, matching the existing max-width: 90vw constraint.

The message content area now scrolls when it exceeds available space:
- Added align-self: stretch to .dialog-message-container in horizontal
  layout so it fills the row height and triggers overflow-y scrolling
- Added min-height: 0 to .dialog-message-container in vertical layout
  to allow flex shrinking and overflow-y scrolling
- Changed .dialog-message-container overflow from 'hidden' to 'overflow-y:
  auto; overflow-x: hidden' to enable vertical scrolling

Buttons, toolbar, and footer remain visible. Only message content scrolls.

Fixes https://github.com/microsoft/vscode/issues/296528

(Commit message generated by Copilot)
2026-03-03 13:19:17 -08:00
Connor Peet 37645e695f chat: add approval management UI to tool picker (#299031)
Adds support for managing tool confirmation preferences directly from the tool
picker. This allows users to approve tools and external paths at the workspace
level, reducing friction when using tools that require confirmation.

- Adds 'Manage Approval' button to tools that support confirmation
- Integrates ILanguageModelToolsConfirmationService with tool picker
- Adds workspace-level allowlist persistence for external paths
- Extends ActionableButton type to support keepOpen behavior
- Implements workspace folder selection and allowlist management
- Adds ObservableMemento for persistent storage of approved paths

Fixes https://github.com/microsoft/vscode-internalbacklog/issues/6805
2026-03-03 13:18:49 -08:00
Matt Bierner 23ecafe12a Merge pull request #299045 from mjbvz/dev/mjbvz/negative-quokka
Add very basic documentation of built-in extension structure
2026-03-03 12:43:43 -08:00
Matt Bierner a7ca6e7842 Update extensions/CONTRIBUTING.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 11:56:09 -08:00
Matt Bierner ea0ea233c3 Update extensions/CONTRIBUTING.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 11:56:01 -08:00
Matt Bierner 92851df52f Update extensions/CONTRIBUTING.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 11:55:22 -08:00
Matt Bierner 5d40b987bf Update extensions/CONTRIBUTING.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 11:54:59 -08:00