Commit Graph

6343 Commits

Author SHA1 Message Date
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
Josh Spicer
975cdcf8fe policy: DeprecatedEditModeHidden (#300290)
* Add 'DeprecatedEditModeHidden' policy

* Add 'add-policy' skill
2026-03-10 00:38:04 +00:00
Robo
0fb3dfe61f fix: remove applications folder on stable (#300211) 2026-03-09 13:09:51 -04:00
Robo
3154150df5 chore: bump electron@39.8.0 (#299669)
* chore: bump electron@39.8.0

* chore: bump distro
2026-03-07 01:26:01 +00:00
Josh Spicer
abe7ae5449 fix: include sessions built-in prompts in esbuild resource patterns (#299848)
The new esbuild-based CI pipeline (core-ci) uses curated resource
patterns in build/next/index.ts to copy non-JS assets into the bundle
output. When built-in .prompt.md files were added for the sessions
window, they were included in the legacy pipeline's
vscodeResourceIncludes (build/gulpfile.vscode.ts) but not in the
desktopResourcePatterns used by the esbuild pipeline.

This caused the prompt files to be missing from release builds
(out-vscode-min), even though they worked correctly when running
from sources (where copyAllNonTsFiles copies everything).

Add 'vs/sessions/prompts/*.prompt.md' to desktopResourcePatterns
to match the existing entry in vscodeResourceIncludes.
2026-03-06 12:02:44 -08:00
Sandeep Somavarapu
2b32258b0e merge to main (#299794)
* sessions - fix chat input shrinking at narrow widths (#299498)

style - set width to 100% for `interactive-input-part`

* modal - force focus into first modal editor always

* fix: update precondition for FixDiagnosticsAction and hide input widget on command execution (#299499)

fixes https://github.com/microsoft/vscode/issues/299251

* refactor: remove workspace context service dependency from FolderPicker

* Add logging for agent feedback actions

* modal - some fixes to actions and layout

* modal - surface some editor actions in a new toolbar (#299582)

* modal - surface some editor actions in a new toolbar

* ccr

* keybindings - remove "Edit as JSON" as its now available from the title menu

* settings - remove "Edit as JSON" as its now available from the title menu

* update hover fixes

* terminal fixes

* terminal improvements

* Sessions: fix auth scopes of gh FSP

* sessions customizations: make it easier to scan mcp/plugin marketplac… (#299636)

sessions customizations: make it easier to scan mcp/plugin marketplace list

* sessions: add built-in prompt files with override support (#299629)

* sessions: add built-in prompt files with override support

Ship bundled .prompt.md files with the Sessions app that appear as
slash commands out of the box. Built-in prompts use a BUILTIN_STORAGE
constant (cast as PromptsStorage) defined in the aiCustomization layer,
avoiding changes to the core PromptsStorage enum and prompt service types.

- AgenticPromptsService discovers prompts from vs/sessions/prompts/
  at runtime via FileAccess and injects them into the listing pipeline
- Override logic: user/workspace prompts with matching names take
  precedence over built-in ones
- Built-in prompts open as read-only in the management editor
- Sessions tree view, workspace service, and counts handle BUILTIN_STORAGE
- Add /create-pr as the first built-in prompt
- Bundle prompt files via gulpfile resource includes

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

* Update src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.ts

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

* sessions: use AICustomizationPromptsStorage type for builtin storage

Adopt the new AICustomizationPromptsStorage union type in the sessions
tree view method signature. Use string-keyed Records and targeted casts
at the PromptsStorage boundary to stay type-safe.

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

* sessions: remove PromptsStorage casts, widen IStorageSourceFilter

Use AICustomizationPromptsStorage in sessions-local interfaces
(IAICustomizationGroupItem, IAICustomizationFileItem) and widen
IStorageSourceFilter.sources to readonly string[] so BUILTIN_STORAGE
flows through without casts. The only remaining cast is at the
IPromptPath creation boundary in AgenticPromptsService.

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

* sessions: move BUILTIN_STORAGE to sessions common layer

Move AICustomizationPromptsStorage type and BUILTIN_STORAGE constant
from the workbench browser UI module to sessions/contrib/chat/common
so that AgenticPromptsService (a service) does not depend on UI code.

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

---------

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

* sessions: fix ESLint dangerous type assertion in builtin prompts (#299663)

Replace the `as IPromptPath` cast in discoverBuiltinPrompts with a
createBuiltinPromptPath factory function that contains the type
narrowing in one place, satisfying the code-no-dangerous-type-assertions
ESLint rule.

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

* Enhance Agent Sessions Control and Renderer with observable active session resource

* fix terminal

* Enable model management in NewChatWidget

* review feedback

* different competion settings for copilot markdown and plaintext

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Johannes Rieken <johannes.rieken@gmail.com>
Co-authored-by: BeniBenj <besimmonds@microsoft.com>
Co-authored-by: Osvaldo Ortega <osortega@microsoft.com>
Co-authored-by: Josh Spicer <23246594+joshspicer@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-06 09:09:01 -08:00
dependabot[bot]
e85cb66e53 Bump tar from 7.5.9 to 7.5.10 in /build/npm/gyp (#299352)
Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.9...v7.5.10)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.10
  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-05 21:46:45 -08:00
dependabot[bot]
22c9742134 Bump @vscode/component-explorer from 0.1.1-19 to 0.1.1-20 in /build/vite (#299463)
Bumps [@vscode/component-explorer](https://github.com/microsoft/vscode-packages/tree/HEAD/js-component-explorer/packages/explorer) from 0.1.1-19 to 0.1.1-20.
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/js-component-explorer/packages/explorer)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 21:46:35 -08:00
Matt Bierner
356e210df9 Merge branch 'main' into dev/mjbvz/apparent-trout 2026-03-05 13:08:07 -08:00
Robo
2ba48d2b52 chore: update dependency info for inno-updater bump (#299394) 2026-03-05 09:15:36 -08:00
Matt Bierner
9086b47862 Temporarily restore webpack ext builds
Needed since https://github.com/microsoft/vscode/pull/298920 snuck in which brought back webpack for the github extension
2026-03-05 08:45:54 -08:00
Henning Dieterichs
a1ef9c86f2 fixes change detection in vscode-extras 2026-03-04 20:40:28 +01:00
Robo
4c1cc1582a fix: add version folder to visualelements manifest icon path (#299239) 2026-03-04 17:31:07 +00:00
Kyle Cutler
055382526d Browser style updates (#299221) 2026-03-04 16:36:36 +00:00
Matt Bierner
ffc4f9dcb3 Reapply 8e445caeff
Switching to a slightly older postcss version to avoid the official build issue
2026-03-03 10:57:52 -08:00
Raymond Zhao
6c485b90d5 chore: run npm audit fix (#298839) 2026-03-03 09:45:17 -08:00
Johannes Rieken
dce8b9367d Merge pull request #298894 from microsoft/joh/source-map-fixes
Enhance source map handling in NLS plugin and related components
2026-03-03 16:35:49 +01:00
Robo
bf882b69a0 fix: explicitly set volume size for dmg (#298918) 2026-03-03 06:45:16 -08:00
Henning Dieterichs
06b198fdd9 improves npm cache logic 2026-03-03 15:16:52 +01:00
Johannes
7bcb2550df Enhance source map handling in build tasks for CI environments 2026-03-03 15:13:11 +01:00
Lee Murray
2c34409c0b Merge pull request #298930 from microsoft/mrleemurray/port-2026-theme-shadows
Port 2026 theme shadows into product
2026-03-03 12:29:21 +00:00
Henning Dieterichs
cd41bf1fe1 Updates component explorer 2026-03-03 12:57:45 +01:00
mrleemurray
985ce3841e refactor: reorganize shadow variables in theme styles for consistency
Co-authored-by: Copilot <copilot@github.com>
2026-03-03 10:59:00 +00:00
mrleemurray
a6e427ed1f refactor: update box-shadow styles across various components to use new shadow variables
- Replaced hardcoded box-shadow values with new CSS variables for consistency and improved theming.
- Updated styles in postEditWidget, findOptionsWidget, findWidget, floatingMenu, hover, parameterHints, peekViewWidget, renameWidget, stickyScroll, suggest, actionWidget, hover, quickInput, agentFeedback components, and more.
- Introduced new shadow variables: --vscode-shadow-sm, --vscode-shadow-md, --vscode-shadow-lg, --vscode-shadow-xl, and --vscode-shadow-hover for better control over shadow effects.

Co-authored-by: Copilot <copilot@github.com>
2026-03-03 10:47:14 +00:00
Robo
06bf068dbb fix: support protocol handler for subapp on macOS (#298877) 2026-03-03 10:59:58 +01:00
Johannes Rieken
e39f6575f1 Merge branch 'main' into joh/source-map-fixes 2026-03-03 10:27:43 +01:00
Johannes
ccbe5ab074 Enhance source map handling in NLS plugin and related components
- Introduced adjustments for source maps in the NLS plugin to ensure accurate mapping after placeholder replacements.
- Implemented deferred processing for source maps to handle edits more effectively, preserving unmapped segments.
- Updated tests to validate column mappings and ensure correctness in both minified and non-minified builds.
- Improved documentation to reflect changes in source map generation and adjustments.
2026-03-03 08:51:36 +01:00
Matt Bierner
8e445caeff Revert "Remove remaining webpack references for building extensions"
This reverts commit 3d7cf10fd1.
2026-03-02 22:42:15 -08:00
Matt Bierner
3d7cf10fd1 Remove remaining webpack references for building extensions
All extensions now should be fully ported over to use esbuild instead of webpack
2026-03-02 15:07:39 -08:00
Dmitriy Vasyura
c95cc7ae08 Fix Guardian errors in sanity tests stage (#298662) 2026-03-02 09:07:48 +00:00
João Moreno
d2a693d828 fix missing sourcemaps (#298660) 2026-03-02 08:54:03 +00:00
dependabot[bot]
fd63d2a386 Bump minimatch in /build (#298315)
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 10.1.1 to 10.2.4
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v10.1.1...v10.2.4)

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v10.1.1...v10.2.4)

Updates `minimatch` from 9.0.5 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v10.1.1...v10.2.4)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.2.4
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  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-02 09:38:15 +01:00
dependabot[bot]
a432b6a01d Bump minimatch from 9.0.5 to 9.0.9 in /build/npm/gyp (#298336)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.5 to 9.0.9.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v9.0.9)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 9.0.9
  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-02 09:29:01 +01:00
Henning Dieterichs
f85c0b3c83 improves npm caching (#298608) 2026-03-01 18:35:08 -08:00
Ladislau Szomoru
215f6b4dd5 Engineering - move node_modules and APIScan stages to the bottom (#298562) 2026-03-01 17:39:05 +01:00
Ladislau Szomoru
12bb8a5b96 Engineering - delete macOS test pipeline (#298539) 2026-03-01 09:29:52 +01:00
João Moreno
d2f1f7ce97 Inline Compile & CompileCLI stages into platform specific jobs (#296006)
* chore: ralph loop checkpoint - 2026-02-17 12:48

* fix shell script

* Inline compile stage into platform jobs

Remove the standalone Compile stage from the ADO pipeline. Each
platform job (Windows, Linux, macOS, Alpine, Web) now compiles
TypeScript itself instead of downloading a shared Compilation artifact.

- Add VSCODE_RUN_CHECKS parameter to Linux jobs for hygiene/lint/CG
- Add VSCODE_RUN_COMPILE_EXTRAS parameter to macOS jobs for telemetry
  extraction and sourcemap upload
- Remove VSCODE_COMPILE_ONLY parameter entirely
- Delete product-compile.yml (no longer referenced)

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

* Always run telemetry extraction on macOS builds

The macOS Universal app merge requires both x64 and arm64 builds to have
identical file sets. Telemetry extraction was only running on arm64 (via
VSCODE_RUN_COMPILE_EXTRAS), causing the universal merge to fail due to
missing telemetry-core.json and telemetry-extensions.json in the x64 build.

Move telemetry extraction outside the VSCODE_RUN_COMPILE_EXTRAS gate so
it runs on all macOS builds. Sourcemap upload remains gated.

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

* Run telemetry extraction on all client builds

All client builds (Linux, Windows, macOS) need telemetry-core.json and
telemetry-extensions.json. Previously only macOS arm64 ran extract-telemetry.

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

* Only run telemetry extraction on Linux x64 (client build)

Linux arm64 and armhf are server-only builds, no need for telemetry files.

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

* Remove .ralph scaffolding files

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

* Fix telemetry extraction on Windows with native PowerShell

The bash extract-telemetry.sh script fails on Windows because the Unix
bin shim gets interpreted as Node.js code. Use a native PowerShell
implementation that calls the extractor JS entry point directly.

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

* Handle missing telemetry files gracefully on Windows

The telemetry extractor may skip emitting declarations-resolved.json
when no events are found. Handle this case with a warning instead of
failing the build.

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

* Use deterministic build date from git commit timestamp

When each platform compiles independently, the build date embedded in
cli.js (via INSERT_PRODUCT_CONFIGURATION) differs between machines
because each uses new Date().toISOString(). This causes the macOS
Universal app merge to fail since cli.js SHA differs between x64/arm64.

Fix: use the git commit date (git log -1 --format=%cI HEAD) instead
of the current wall-clock time. This ensures all independent builds
on different machines produce identical timestamps.

Updated in:
- build/lib/date.ts: writeISODate() uses git commit date
- build/next/index.ts: bundle(), transpile, and readISODate fallback
  all use git commit date

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

* Remove redundant extensions-ci task from CI pipelines

core-ci (esbuild path) already includes cleanExtensionsBuildTask,
compileNonNativeExtensionsBuildTask, and compileExtensionMediaBuildTask.
Running extensions-ci in parallel caused a race condition where
core-ci's rimraf of .build/extensions clashed with extensions-ci
writing to the same directory.

Also removes dead code:
- extensions-ci and extensions-ci-pr task definitions (fully subsumed)
- core-ci-old task (useEsbuildTranspile is always true)

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

* remove VSCODE_RUN_COMPILE_EXTRAS

* address PR feedback regarding code duplication of `getGitCommitDate()` function by exporting a single helper function from `build/lib/date.ts` and importing it in `build/next/index.ts` to ensure consistent behavior and improve code maintainability.

* update readISODate function to return git commit date instead of current date

* add telemetry sorting script and integrate into build process for consistent output

* refactor telemetry extraction process: replace shell script with TypeScript implementation

* update skill

* update telemetry-extractor dependency to version 1.19.0

* fix build

* fix more duplicate telemetry definition issues

* cleanup

* refactor: consolidate validation checks into quality checks and remove obsolete tasks

* bust the cache

* undo cache bust

* fix expression

* fix

* fix: update Azure storage account name in quality checks

* fix: initialize stages set with 'Quality'

* fix: add VSCODE_BUILD_TYPE parameter with options for Product and CI builds

* fix: update Azure Pipeline CLI to use parameters instead of variables for queueing builds

* fix: update VSCODE_BUILD_TYPE parameter values for clarity

* fix: update default value for VSCODE_BUILD_TYPE parameter to 'Product'

* leaner

* even leaner

* only npm ci in build

* 💄

* run entire npm ci

* fix

* fix

* fix it

* Inline CompileCLI into platform stages

- Remove centralized CompileCLI stage
- Move CLI jobs into Windows, Linux, macOS stages as independent jobs
- CLI jobs now compile, publish unsigned mid-job, sign, and publish signed
- Platform compile jobs use deemon + waitForArtifacts for async CLI download
- Delete separate CLI sign jobs (now merged into CLI compile jobs)
- Remove CompileCLI from publish.ts stage tracking

* fix: macOS CLI signing - use proper directory structure for ESRP

* fix: add BUILDS_API_URL to Windows and Linux job templates

* fix: label Linux CLI jobs clearly

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: João Moreno <22350+joaomoreno@users.noreply.github.com>
2026-03-01 08:48:08 +01:00
dependabot[bot]
e6bed073db Bump fast-xml-parser from 5.3.6 to 5.4.1 in /build (#298316)
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.3.6 to 5.4.1.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.3.6...v5.4.1)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-version: 5.4.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-02-27 19:47:50 +00:00
Henning Dieterichs
5b7dafcb12 Add vscode-extras extension with npm up-to-date feature and related configurations (#298295) 2026-02-27 17:16:26 +00:00
Dmitriy Vasyura
a0a6cd83e2 Improve sanity tests stability (#298253) 2026-02-27 16:06:37 +00:00
Robo
55dbb7dd84 chore: revert to electron@39.6.0 (#298230)
* chore: revert to electron@39.6.0

* chore: bump distro
2026-02-27 05:06:30 -08:00
dependabot[bot]
e35ef9ba2b Bump rollup from 4.57.1 to 4.59.0 in /build/vite (#297821)
Bumps [rollup](https://github.com/rollup/rollup) from 4.57.1 to 4.59.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.57.1...v4.59.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-version: 4.59.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-26 15:49:33 -08:00
Henning Dieterichs
0a01b4f5ae Fixes vite warnings & improves pipeline 2026-02-26 21:03:52 +01:00
Henning Dieterichs
96baba2cc4 feat: update component explorer dependencies and add new test fixtures
- Updated @vscode/component-explorer to version 0.1.1-16 and @vscode/component-explorer-cli to version 0.1.1-12 in package.json and package-lock.json.
- Added new test fixtures for chat question carousel, code action list, find widget, inline completions extras, rename widget, and suggest widget.
- Implemented rendering logic for new fixtures to enhance testing capabilities for various components.
2026-02-26 15:30:23 +01:00
Benjamin Christopher Simmonds
46664389f9 Merge pull request #297813 from microsoft/benibenj/spiritual-xerinae
Update button colors and animation for download progress
2026-02-26 03:22:09 +01:00
Robo
192a1b2478 chore: sessions entry app for windows (#297589)
* chore: enable sub app entrypoint on windows

* chore: update window icons

* chore: update gulp-electron

* chore: bump inno_updater

* chore: cleanup

* fix: inno compilation for stable

* chore: bump distro

* chore: bump distro
2026-02-25 23:08:43 +00:00
BeniBenj
561772d217 update animation and background color 2026-02-25 23:49:48 +01:00
Kyle Cutler
bc3b68862d Apply policy to browser tools setting (#297591)
* Apply policy to browser tools setting

* update policy jsonc
2026-02-25 09:34:50 -08:00
Benjamin Christopher Simmonds
88a997f17f Merge pull request #297702 from microsoft/benibenj/copilot-worktree-2026-02-25T10-53-14
Add agent feedback input widget with submission functionality
2026-02-25 16:42:15 +01:00
BeniBenj
1327aed903 feat: implement agent feedback submission with updated widget border and service integration 2026-02-25 13:33:21 +01:00