Commit Graph

148279 Commits

Author SHA1 Message Date
Osvaldo Ortega
2b1926511a ignore scripts 2026-03-10 15:58:40 -07:00
Osvaldo Ortega
da5b9e899c CI 2026-03-10 15:53:16 -07:00
Osvaldo Ortega
f22a90205c Updates 2026-03-10 15:48:52 -07:00
Osvaldo Ortega
2879e48d56 Merge pull request #300492 from microsoft/copilot/genetic-gibbon
Sessions: Fix repository grouping bugs (duplicates, "Other" fallback, worktree resolution)
2026-03-10 15:36:26 -07:00
BeniBenj
3b88583430 small session tweaks 2026-03-10 23:32:37 +01:00
Tyler James Leonhardt
09df607c61 docs: enhance SKILL.md with screenshot guidance and restart workflow (#300564)
* docs: enhance SKILL.md with screenshot guidance and restart workflow

seems to work well

* fix: guard kill commands and remove npm run compile from SKILL.md

Address PR review feedback:
- Make `kill $(lsof -t -i :9224)` resilient to empty PIDs by checking
  before killing, so cleanup/restart instructions don't fail when Code
  OSS is already stopped.
- Replace `npm run compile` with a comment directing users to let
  `./scripts/code.sh` handle the build or use `npm run watch`, aligning
  with repo guidance that prohibits `npm run compile` for TS validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 15:32:29 -07:00
Matt Bierner
3140ee08de Merge pull request #300562 from mjbvz/dev/mjbvz/tragic-tyrannosaurus
Log when `untitled` sessions cross the ext host boundary
2026-03-10 15:20:23 -07:00
Osvaldo Ortega
63b43291ff Merge branch 'main' of https://github.com/microsoft/vscode into copilot-worktree-2026-02-27T00-36-54 2026-03-10 14:57:02 -07:00
Benjamin Christopher Simmonds
6097683cb7 Merge pull request #300475 from microsoft/benibenj/northern-tahr
Prevent local cwd evaluation in sessions window
2026-03-10 22:48:34 +01:00
copilot-swe-agent[bot]
3681826ab6 Fix terminal OverviewRulerRenderer crash on disposal
During terminal disposal, DecorationAddon._dispose() was calling
clearDecorations() which individually disposed each xterm IDecoration.
Each disposal triggered DecorationService.onDecorationRemoved events
that caused the OverviewRulerRenderer to queue requestAnimationFrame
callbacks. These callbacks fired after the renderer was disposed,
crashing when accessing RenderService.dimensions (since the underlying
renderer MutableDisposable returned undefined).

Fix: Only clean up VS Code-side resources (event listeners, context
menus, etc.) during disposal. xterm handles its own decoration cleanup
when the terminal is disposed.

Fixes: Cannot read properties of undefined (reading 'dimensions')

Co-authored-by: bryanchen-d <41454397+bryanchen-d@users.noreply.github.com>
2026-03-10 21:47:49 +00:00
Matt Bierner
ec2b57c283 Merge pull request #300547 from mjbvz/dev/mjbvz/glorious-sparrow
Re-remove webpack
2026-03-10 14:44:41 -07:00
Josh Spicer
a200e8b166 ai-customizations: improve list visual scannability (#300551)
* ai-customizations: improve list visual scannability (#299211)

- Add type-specific icon to each list item (agent, skill, instructions, prompt, hook)
- Format item names: convert dashes/underscores to spaces and apply title case
- Truncate descriptions to first sentence (max 120 chars fallback) to reduce visual noise
- Make item name font-weight 500 so titles pop against secondary text

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

* ai-customizations: add type icon + name/description polish for MCP servers and plugins (#299211)

- Export formatDisplayName and truncateToFirstSentence helpers from aiCustomizationListWidget
- Add mcpServerIcon to McpServerItemRenderer (local + builtin items)
- Add pluginIcon to PluginInstalledItemRenderer
- Apply formatDisplayName (dash/underscore → spaces, title case) to names
- Apply truncateToFirstSentence to descriptions
- Set font-weight: 500 on mcp-server-name to match AI customization list style
- Remove left-indent padding on mcp-server-item now that the icon fills that space

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

* ai-customizations: mute group count badges (#299211)

Replace badge-background/foreground pill styling with plain descriptionForeground
text (opacity 0.8) on both the group-header count and the sidebar section count.
This lets the section label dominate visually.

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

* ai-customizations: restore badge pill with reduced opacity (#299211)

Keep badge-background/foreground colors but apply opacity: 0.6 so the
pill is still visible but clearly secondary to the section label.

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

* ai-customizations: use keybindingLabel tokens for count badges (#299211)

Switch from badge-background (bright accent) to keybindingLabel-background/
foreground/border tokens, which are designed for subtle inline labels.
No opacity hacks needed — the color itself is naturally muted.

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

* ai-customizations: use list.inactiveSelection tokens for count badges (#299211)

Switch to list.inactiveSelectionBackground/Foreground — the semantically
closest tokens for a secondary/muted count pill in a list/tree context.
No opacity hacks needed and the name directly reflects the role.

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

* ai-customizations: strip trailing .md from display names (#299211)

formatDisplayName now strips a case-insensitive .md suffix before
applying the title-case transform, so 'my-file.Md' no longer
appears as a title.

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

* ai-customizations: remove explicit font-weight from item titles (#299211)

Drop the font-weight: 500 on item-name and mcp-server-name. The visual
hierarchy is already established by the 13px full-foreground title vs the
11px muted descriptionForeground description below it, without needing an
explicit weight bump.

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

* ai-customizations: use star icon for built-in MCP server items (#299211)

Built-in MCP items now show builtinIcon (star) instead of mcpServerIcon,
consistent with the prompts built-in group. Icon is now set per-element
in renderElement so the two item types can show different icons.

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

* Revert "ai-customizations: use star icon for built-in MCP server items (#299211)"

This reverts commit 6b08675a22.

* ai-customizations: use star icon for Built-in MCP group header (#299211)

Change the Built-in group header icon from extensionIcon to builtinIcon
(starFull), consistent with the Built-in group in the prompts list.

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

* ai-customizations: remove unused extensionIcon import from mcpListWidget (#299211)

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

* prompts: add create-pr prompt with compile-check reminder

Ensures the TypeScript compile check is run before opening a PR,
catching unused import and type errors that tsgo would flag in CI.

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

* ai-customizations: fix IMatch highlight positions for formatted names (#299211)

nameMatches are now computed against formatDisplayName(item.name) in
filterItems so highlight positions align with the displayed string.
The .md stripping in formatDisplayName changes string length, so matches
against the raw name would produce incorrect highlight spans.
Also removed the outdated '1:1 transformation' claim from the JSDoc.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 14:43:53 -07:00
Matt Bierner
f6a8182caa Remove one log 2026-03-10 14:40:33 -07:00
Liam
eab1e8b236 Merge branch 'main' into affordance-fix 2026-03-10 17:37:08 -04:00
Matt Bierner
b971893e34 Log when untitled sessions cross the ext host boundary 2026-03-10 14:33:19 -07:00
lammmab
72276c93da Fix issue #300500 by checking value of the chat entitlement context key 2026-03-10 17:29:46 -04:00
copilot-swe-agent[bot]
e01a90043c Initial plan 2026-03-10 21:24:52 +00:00
Ladislau Szomoru
4863c500a8 Sessions - add prompt for the draft pull request (#300543)
* Sessions - add prompt for the draft pull request

* 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-10 14:11:42 -07:00
Paul
d71bb75a3a Remove await in discovery phase (#300537) 2026-03-10 13:52:16 -07:00
Matt Bierner
03968c2076 Re-remove webpack
All of our extensions are now using esbuild
2026-03-10 13:42:52 -07:00
Josh Spicer
f01d41c784 Keep Chat customizations section selected while active (#300528)
Keep active customization section selected

Ensure the left sections list re-applies selection/focus for the active section when the list selection is cleared, so the active view remains persistently selected.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 13:29:24 -07:00
Bhavya U
9a1fe573bb Fix registerToolDefinition tools from default chat agent being filtered out (#300529)
Tools registered via registerToolDefinition by the default chat agent
(copilot-chat) were incorrectly getting source type 'extension' instead
of ToolDataSource.Internal. This caused them to be filtered out by the
chat.extensionTools.enabled setting check in getAllToolsIncludingDisabled().

Package.json-contributed tools from the same extension correctly got
ToolDataSource.Internal via the isBuiltinTool check in
languageModelToolsContribution.ts. Apply the same logic in
$registerToolWithDefinition on the main thread.
2026-03-10 20:21:19 +00:00
Connor Peet
ea9e9386aa chat: simplify symbol reference cache to an array (#300489)
* chat: simplify symbol reference cache to an array

Replaces the Map-based symbol reference cache with a simple array that
keeps only the last 3 copied symbols. This removes the 15-second TTL
expiration logic and relies on insertion order instead.

- Changed symbolReferenceCache from Map to array
- Removed symbolCacheTtlMs constant and pruning logic
- Added symbolCacheMaxSize constant for max entries
- Simplified cache lookups with array.find()
- Automatically evicts oldest entry when exceeding capacity

(Commit message generated by Copilot)

* comment

* skip flakey test, suggested by Megan
2026-03-10 12:51:52 -07:00
Megan Rogge
bcc83ce105 Fix cannot read properties of undefined (reading 'filter') (#300518)
prevent error from throwing
2026-03-10 12:39:28 -07:00
Matt Bierner
3aa9077237 Merge pull request #300358 from mjbvz/dev/mjbvz/faithful-crow
Reduce `....args: any[]` usage
2026-03-10 12:22:19 -07:00
Dmitriy Vasyura
cfe3b3286e Update action for the title bar (#300453) 2026-03-10 19:20:43 +00:00
Megan Rogge
b50d56f99a do not send freeform input for autoreply, just return (#300515) 2026-03-10 12:19:26 -07:00
JeffreyCA
db2c7eebf0 Update Fig spec for Azure Developer CLI (azd) (#299892)
Add azd terminal completions for new extension and core commands
2026-03-10 15:11:37 -04:00
Ladislau Szomoru
97c94c2a79 Sessions - update context key calculation (#300514) 2026-03-10 12:04:01 -07:00
Megan Rogge
13262e38d8 fix cannot read properties of undefined (reading 'getCell') error that causes terminal benchmarks to fail (#300517)
fix error
2026-03-10 11:58:55 -07:00
dependabot[bot]
82ee6ebf02 Bump the component-explorer group with 2 updates (#300168)
Bumps the component-explorer group with 2 updates: [@vscode/component-explorer](https://github.com/microsoft/vscode-packages/tree/HEAD/js-component-explorer/packages/explorer) and [@vscode/component-explorer-cli](https://github.com/microsoft/vscode-packages/tree/HEAD/js-component-explorer/packages/cli).


Updates `@vscode/component-explorer` from 0.1.1-19 to 0.1.1-22
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/js-component-explorer/packages/explorer)

Updates `@vscode/component-explorer-cli` from 0.1.1-15 to 0.1.1-18
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/js-component-explorer/packages/cli)

---
updated-dependencies:
- dependency-name: "@vscode/component-explorer"
  dependency-version: 0.1.1-22
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: component-explorer
- dependency-name: "@vscode/component-explorer-cli"
  dependency-version: 0.1.1-18
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: component-explorer
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-10 11:52:14 -07:00
Matt Bierner
d42b123a3c Merge pull request #297570 from microsoft/copilot/fix-tooltip-markdown-syntax
Fix: Strip markdown syntax from deprecated setting diagnostic messages
2026-03-10 11:34:27 -07:00
Anthony Kim
01eb53f0f9 Bump xterm to take IME overflow fix (#300322)
Bump xterm to take IME fix
2026-03-10 11:03:43 -07:00
Matt Bierner
929482dd58 Merge branch 'main' into dev/mjbvz/faithful-crow 2026-03-10 11:01:15 -07:00
Johannes Rieken
cb61e0d5bd Fix source path duplication in NLS plugin source maps and add corresponding test (#300487) 2026-03-11 04:57:33 +11:00
Connor Peet
0a8edf7b2f plugins: allow updating agent plugins (#300344)
* plugins: allow updating agent plugins

Add update detection and update buttons to the agent plugins view and editor.
This allows users to see when installed plugins have newer versions available
and update them directly from the UI without manually checking for updates.

- Export hasSourceChanged() from pluginMarketplaceService for reuse
- Add 'outdated' and 'liveMarketplacePlugin' fields to IInstalledPluginItem
- Fetch marketplace data in AgentPluginsListView.show() to cross-reference
  installed vs live versions and mark outdated plugins
- Add UpdatePluginAction to list view with live marketplace data
- Add UpdatePluginEditorAction to plugin editor with live marketplace data
- Both update actions re-register the plugin with updated metadata after
  successful update so the UI immediately reflects the new version
- Read fresh installed metadata from pluginMarketplaceService.installedPlugins
  store (not stale IAgentPlugin.fromMarketplace) for accurate version checks
- Pass 'silent' option to runInstall() to show non-blocking notification
  instead of dialog when silent=true
- Re-register plugins with live data after updateAllPlugins() completes
  so stored sourceDescriptor reflects new version/ref/sha

(Commit message generated by Copilot)

* pr comments and cleanup

* fix test failure
2026-03-11 04:57:13 +11:00
Osvaldo Ortega
badedc5e8b feat: hide redundant badge when grouped by repository
When sessions are grouped by repository, the section header already
shows the repo name. Hide the badge (e.g., '$(repo) vscode') on
individual session rows to reduce visual noise. Only hides badges
that match the repo/folder/worktree icon pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 10:46:03 -07:00
Matt Bierner
2eefd9e554 Merge pull request #300495 from mjbvz/dev/mjbvz/fierce-hawk
Disable api-version-check for now
2026-03-10 10:45:12 -07:00
Osvaldo Ortega
b803818286 fix: use order-independent assertions for collision test
localeCompare is case-insensitive on some platforms, making
'Other' vs 'other' sort order non-deterministic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 10:40:51 -07:00
Vijay Upadya
34bfd71aea Revert "Revert "Debug Panel: oTel data source support and Import/export (#299256)"" (#300477)
Revert "Revert "Debug Panel: oTel data source support and Import/export (#299…"

This reverts commit 11246017b6.
2026-03-10 17:32:58 +00:00
Osvaldo Ortega
0dd6a8bf4d rename noRepoKey to unknownKey
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 10:31:52 -07:00
Osvaldo Ortega
566e2f8166 fix: address PR review feedback for repository grouping
- Use non-colliding internal key for 'Other' group to avoid collision
  with a real repo named 'other'
- Handle .git suffix and git@host:owner/repo.git SSH URLs in repo parsing
- Add metadata.worktreePath as fallback extraction source
- Fix flaky test ordering by sorting groups before assertion
- Add new tests for .git stripping, git@ URLs, worktreePath, and
  'other' repo name collision

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 10:29:47 -07:00
Matt Bierner
0cd1e5976a Disable api-version-check for now
Needed to unblock #300477
2026-03-10 10:22:07 -07:00
Osvaldo Ortega
ee3965a8c9 feat: add grouping functionality for agent sessions by repository metadata 2026-03-10 10:18:26 -07:00
Anthony Kim
7daf926d27 Add telemetry for xterm imageAddon (#299017)
* Add telemetry imageAddon loaded

* edit descr

* add more individual telmetry from xterm.js api

* Make sure we have telemetry for setting AND image count
2026-03-10 10:16:03 -07:00
Osvaldo Ortega
db0a5a06e0 refactor: remove unnecessary logging for sessions without repository names in AgentSessionsDataSource 2026-03-10 10:04:56 -07:00
Osvaldo Ortega
290020da61 feat: add logging for sessions without repository names in AgentSessionsDataSource 2026-03-10 10:02:29 -07:00
Osvaldo Ortega
2b5e1b5d49 refactor: streamline repository name retrieval and enhance badge regex matching 2026-03-10 09:58:07 -07:00
dileepyavan
c2da2674e1 [MCP_Sandboxing]Updating regex for extracting paths from sandbox errors (#300354)
* 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

* Updating regex to extract file name
2026-03-10 09:35:15 -07:00
Osvaldo Ortega
f3aa4e2a6e feat: implement repository name extraction from filesystem path in AgentSessionsDataSource 2026-03-10 09:28:02 -07:00