Commit Graph

147909 Commits

Author SHA1 Message Date
Matt Bierner
f2bd744896 Keep .md file extension as default extension
Fixes #300239
2026-03-09 23:19:55 -07:00
Paul
e2db4495b3 Improve slash command render (#300287) 2026-03-09 22:25:06 -07:00
Jamie Cansdale
eb7e1c7cb8 fix: chunk multiline PTY writes on macOS to avoid 1024-byte buffer corruption (#298993)
* test: add multiline PTY write test for macOS 1024-byte buffer bug

Adds a test that sends multiline commands of varying sizes (10, 20, 30 lines)
through TerminalProcess.input() and verifies the data arrives intact at the
shell. On macOS, multiline commands exceeding ~1024 bytes corrupt due to PTY
canonical-mode input buffer backpressure.

Reproduces: #296955

* fix: chunk multiline PTY writes on macOS to avoid 1024-byte buffer corruption

macOS PTY has a ~1024-byte canonical-mode input buffer. When multiline data
(containing CR characters) exceeds this threshold, the shell's line editor
echoes characters back, creating backpressure that corrupts the write.

Write multiline PTY input in 512-byte chunks with 5ms pauses between them
to allow the echo buffer to drain. Non-macOS platforms and single-line
writes are unaffected.

Fixes #296955

* test: increase large multiline test to 500 lines (~32KB)
2026-03-09 21:05:33 -07:00
Osvaldo Ortega
0f2bee18cd Merge pull request #300297 from microsoft/copilot/impressed-tiger
Sessions: Add "Group by Repository" toggle for sessions list
2026-03-09 19:03:13 -07:00
Vijay Upadya
5c84259481 Debug Panel: oTel data source support and Import/export (#299256)
* otel data source and Import/export

* Handle chat customization events in import/export

* PR feedback updates

* Fix reopen issue

* Simplify and pass core events for export

* Perf optimizations and label changes

* add session title to export/import
2026-03-09 18:44:34 -07:00
Osvaldo Ortega
cf9e1b99b8 perf: use update() instead of refresh() when toggling grouping
refresh() re-resolves all sessions from providers (network calls).
update() just re-renders the tree with existing data, which is all
that is needed when changing the grouping mode.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:32:46 -07:00
Osvaldo Ortega
862667adee fix: avoid type assertion for repo section IDs
Add AgentSessionSection.Repository enum value and use it for all repo
group sections. Differentiate repo sections via the identity provider
which now includes the label in the section ID.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:29:40 -07:00
Osvaldo Ortega
bb069eac1e fix: revert type widening of AgentSessionSection
Keep IAgentSessionSection.section as AgentSessionSection (not string).
Revert all changes to agentSessionsControl.ts and agentSessionsModel.ts.
Use type assertion for dynamic repo section IDs in the viewer instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:27:03 -07:00
Osvaldo Ortega
164d0f59f5 refactor: move grouping state out of AgentSessionsFilter
The filter should work the same regardless of grouping mode. Moved all
grouping state management (storage, context key, toggle) to the sessions
view pane, which owns it. The filter just receives the current grouping
via its existing groupResults option callback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:23:37 -07:00
Osvaldo Ortega
0c354be564 fix: use single static grouping storage key
Simplify GROUPING_STORAGE_KEY to a static constant instead of per-instance
scoped key. The grouping override is guarded by supportsGroupingOverride
(only enabled when options.groupResults is configured), which is sufficient
to prevent unintended interference.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 18:19:22 -07:00
Paul
21d682f185 Allow local customizations (#300298) 2026-03-10 01:00:21 +00:00
Henning Dieterichs
74c765017e Disable screenshots until time out bug is fixed (#300293) 2026-03-10 00:52:12 +00:00
Justin Chen
7c24905755 bypass approvals and toolbar in cli (#300228)
* bypass approvals and toolbar in cli

* new picker in new chat state for sessions
2026-03-10 00:49:02 +00:00
Josh Spicer
975cdcf8fe policy: DeprecatedEditModeHidden (#300290)
* Add 'DeprecatedEditModeHidden' policy

* Add 'add-policy' skill
2026-03-10 00:38:04 +00:00
Osvaldo Ortega
4536525e00 Merge pull request #300282 from microsoft/copilot/prior-parrotfish
Fix file icon rendering in sessions context attachments
2026-03-09 17:30:42 -07:00
Osvaldo Ortega
35d87bb110 fix: address PR review feedback
- Scope grouping storage key per filter instance (filterMenuId) to avoid
  cross-instance interference; only enable grouping override when a default
  grouping is configured
- Add isStoringGrouping guard to prevent duplicate onDidChange events
  when setGrouping writes to storage
- Use full owner/repo as section ID for unique grouping; display short
  repo name as section label

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 17:28:40 -07:00
Kyle Cutler
944b9d37f7 Normalize URLs in browser tool calls (#299891) 2026-03-09 17:10:20 -07:00
Osvaldo Ortega
0da24326a1 feat: implement grouping actions for sessions by repository and date 2026-03-09 17:00:11 -07:00
Osvaldo Ortega
d438554123 feat: enhance repository name extraction in AgentSessionsDataSource 2026-03-09 16:54:38 -07:00
Osvaldo Ortega
3b84d87a3b feat: add repository name extraction and grouping toggle for agent sessions 2026-03-09 16:50:00 -07:00
Benjamin Christopher Simmonds
01669c2233 Agent feedback improvements (#300202)
* agent feedback improvements

* fix test
2026-03-09 23:47:31 +00:00
Osvaldo Ortega
f8c6fd31e9 feat: enhance session grouping by adding archived sessions and repository name extraction 2026-03-09 16:39:45 -07:00
Osvaldo Ortega
fed1cfdff2 Use ResourceLabels for attachment pill icons
Replace plain spans with getIconClasses() with proper ResourceLabels
and label.setFile() for attachment pills, matching how core chat
attachments render file icons via the monaco-icon-label system.

Add CSS for .monaco-icon-label inside pills to ensure correct sizing
and layout of file icon theme ::before pseudo-elements.

Keep getIconClasses for QuickPick file items where the QuickPick's
internal IconLabel handles rendering.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 16:37:17 -07:00
Connor Peet
c3788b7bbe plugins/mcp: allow disabling/enabling similar to extensions (#300273)
* plugins/mcp: allow disabling/enabling similar to extensions

Introduces an EnablementModel which is used to allow users to enable and disable both plugins and MCP at both a workspace and global level. Accessible on the mcp/plugins editors, inline within the marketplace view, and in the chat customizations view.

* comments
2026-03-09 23:36:39 +00:00
Matt Bierner
c3c17667b9 Merge pull request #300266 from mjbvz/dev/mjbvz/characteristic-salamander
Reduce size of `IChatSessionContext`
2026-03-09 15:55:03 -07:00
Josh Spicer
783a493479 Merging copilot/popular-wallaby to main (#300265)
Exclude Claude hook file paths from sessions app

Disable the Claude-specific hook file locations (.claude/settings.json,
.claude/settings.local.json, ~/.claude/settings.json) in the sessions
window by setting them to false in the chat.hookFilesLocations config
default. This uses the existing PromptsConfig mechanism for disabling
individual default paths.

Fixes microsoft/vscode#300138

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 22:53:16 +00:00
Osvaldo Ortega
ec99a8f391 feat: add repository grouping option for agent sessions 2026-03-09 15:44:37 -07:00
Osvaldo Ortega
cc30b97f4a feat: enhance file attachment rendering with icons and language support 2026-03-09 15:41:31 -07:00
dileepyavan
f36dd9fa16 Add experiment mode to terminal sandbox (#300259) 2026-03-09 22:36:17 +00:00
Copilot
2817ed09f5 Fix JavaScript syntax highlighting for RunPlaywrightCode tool input (#299918)
* Initial plan

* fix: use correct language for input syntax highlighting in tool invocation parts

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>
2026-03-09 22:30:47 +00:00
dileepyavan
cd1a5c39cb Ensure all the commands passed to srt as positional params instead of options. (#300252)
* changes to ensure all the network requests are passed through proxy

* changes to ensure all the network requests are passed through proxy

* changes to quote shell arguments passed to sandbox

* updates to default paths
2026-03-09 15:19:44 -07:00
Don Jayamanne
4bfee9c8ea fix: add resultDetails to ChatToolInvocationPart and Response handling (#300238) 2026-03-09 15:19:23 -07:00
Matt Bierner
b3fff3f210 Reduce size of IChatSessionContext
All of this info is already on the chatSessionResource
2026-03-09 14:22:34 -07:00
Connor Peet
6c1f6d84e8 chat: add symbol paste provider (#300243)
* chat: add symbol paste provider

Adds PasteSymbolProvider to automatically convert copied symbol
identifiers into chat symbol variable references (@sym:identifier) when
pasting into the chat input.

- Adds ResolvedSymbolReference interface to represent a resolved symbol
  with location, icon, and metadata
- Implements CopyTextProvider.prepareDocumentPaste to prime a symbol
  reference cache when copying from code editors
- Adds resolveSymbolReference function that uses language definition
  providers and document outline to resolve copied identifiers to their
  definitions and determine appropriate icons
- Adds symbol reference cache with TTL-based expiration to avoid
  repeatedly resolving the same symbols
- Implements PasteSymbolProvider.provideDocumentPasteEdits to detect
  when an identifier is pasted into chat input and convert it to a
  symbol variable reference
- Registers PasteSymbolProvider alongside other paste providers in
  ChatPasteProvidersFeature

(Commit message generated by Copilot)

* comment
2026-03-09 20:53:33 +00:00
Matt Bierner
8c35874626 Merge pull request #300236 from mjbvz/dev/mjbvz/blonde-otter
Remove confusing `chatResource` from `NewChatSessionOpenOptions`
2026-03-09 12:36:33 -07:00
Matt Bierner
7d218815d5 Merge pull request #300221 from microsoft/dev/mjbvz/esbuild-github
Port GitHub extension to use esbuild again
2026-03-09 12:29:48 -07:00
Matt Bierner
600073511e Remove confusing chatResource from NewChatSessionOpenOptions
Looks like this is no longer being used
2026-03-09 12:09:48 -07:00
Kyle Cutler
072e99c121 Fix browser preventing system sleep (#300215)
No more insomnia
2026-03-09 17:58:54 +00:00
dependabot[bot]
7b4ba7d093 Bump express-rate-limit from 8.2.1 to 8.3.0 in /test/mcp (#299836)
Bumps [express-rate-limit](https://github.com/express-rate-limit/express-rate-limit) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/express-rate-limit/express-rate-limit/releases)
- [Commits](https://github.com/express-rate-limit/express-rate-limit/compare/v8.2.1...v8.3.0)

---
updated-dependencies:
- dependency-name: express-rate-limit
  dependency-version: 8.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:51:20 -07:00
dependabot[bot]
dcea9a598c Bump dompurify from 3.2.7 to 3.3.2 in /extensions/markdown-language-features (#299899)
Bump dompurify in /extensions/markdown-language-features

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.2.7 to 3.3.2.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.2.7...3.3.2)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.3.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:48:14 -07:00
Robo
0fb3dfe61f fix: remove applications folder on stable (#300211) 2026-03-09 13:09:51 -04:00
Matt Bierner
e74071cd63 Fix import 2026-03-09 09:38:32 -07:00
Matt Bierner
02d9c6d239 Also set type: module again 2026-03-09 09:38:05 -07:00
Matt Bierner
26876d30a1 Revert main change 2026-03-09 08:59:46 -07:00
Benjamin Pasero
9cf71aa122 fix - update workspace identifier path in SessionsMain 2026-03-09 08:55:19 -07:00
Matt Bierner
da486ede06 Merge pull request #300194 from microsoft/dev/mjbvz/joint-chimpanzee
Bump default extension target version
2026-03-09 08:37:25 -07:00
Martin Aeschlimann
2d85f4314e cleanup for prompt file variables (#300185) 2026-03-09 16:36:45 +01:00
Benjamin Pasero
798b580537 Merging copilot/outstanding-cod to main (#300187)
style - reduce padding in `interactive-item-container`
2026-03-09 16:32:32 +01:00
Matt Bierner
9c1300d59a Bump default extension target version
Let's use a more modern default
2026-03-09 08:15:47 -07:00
Matt Bierner
13a604e50c Revert "Revert "Port github extension to use esbuild" (#298920)"
This reverts commit 51f5cafd6f.
2026-03-09 08:10:36 -07:00