Commit Graph

4774 Commits

Author SHA1 Message Date
Matt Bierner
5e957b6922 Update build ts version 2026-04-08 20:49:29 -07:00
Henning Dieterichs
088b38a734 update component explorer 2026-04-09 05:12:44 +02:00
João Moreno
72189fe5e1 bump distro (#308498) 2026-04-08 13:38:51 +00:00
Christof Marti
43f7117748 Surface network errors with proxies (microsoft/vscode#298236) 2026-04-08 08:13:59 +00:00
Rob Lourens
063a61dbb7 agentHost Adopt new tree-sitter (#308352)
* agentHost Adopt new tree-sitter

* Bump in web

* Fix test

* fix tests
2026-04-08 00:41:31 +00:00
Anthony Kim
0e637c9101 Update xterm to beta.197 (#308317) 2026-04-07 15:31:28 -07:00
Connor Peet
bc6deaadc8 Merge pull request #308249 from microsoft/connor4312/reapply-tunnels
Reapply tunnels work
2026-04-07 12:58:34 -04:00
Alex Ross
f67890df50 Bump version (#308241) 2026-04-07 16:44:01 +00:00
João Moreno
3bb4cc19be Merge pull request #302778 from microsoft/joao/copilot-builtin
Ship Copilot as a built-in extension
2026-04-07 17:08:36 +02:00
Connor Peet
62a503dc25 Revert "Revert build breakages (#308162)"
This reverts commit 8aa4cf8a0f.
2026-04-07 07:48:16 -07:00
Alex Ross
c72ee2b976 Update distro (#308176) 2026-04-07 09:40:45 +00:00
João Moreno
8aa4cf8a0f Revert build breakages (#308162)
* Revert "agentHost: Hook up isRead/isDone (#308107)"

This reverts commit a3d69b7767.

* Revert "agentHost: support connections over tunnels (#307948)"

This reverts commit 75f21d0a8d.
2026-04-07 08:43:56 +00:00
Connor Peet
75f21d0a8d agentHost: support connections over tunnels (#307948)
* wip

* clean up unused bits and make auth work correctly

* comments and fixes
2026-04-06 16:14:01 +00:00
João Moreno
75fea1b777 Merge remote-tracking branch 'origin/main' into joao/copilot-builtin 2026-04-05 20:39:32 +02:00
Anthony Kim
4370953ab5 Update xterm to 6.1.0-beta.196 (#307288) 2026-04-02 12:14:42 -07:00
Joaquín Ruales
acdb71d337 Integrated Browser: Upgrade Playwright to 1.59 (#307459)
* Upgrade Playwright to 1.59

* don't upgrade test

* Fix full/incremental logic

* Update

* Fix package-lock. Apply PR suggestions
2026-04-02 18:33:51 +00:00
Robo
6026fd9874 fix: update macOS icons assets for agents app (#307389)
* fix: update macOS icons assets for agents app

* chore: bump distro
2026-04-02 11:24:03 +00:00
Benjamin Pasero
41318b563e up distro (#307378) 2026-04-02 12:29:02 +02:00
Robo
015aef6054 fix: tls.getCACertificates result for self-signed and server auth (#307144)
* fix: tls.getCACertificates result for self-signed and server auth

* chore: bump distro
2026-04-01 16:32:01 +02:00
Benjamin Pasero
e2885a5961 up distro (#307131)
* up distro

* .
2026-04-01 13:05:08 +00:00
Rob Lourens
e6e776a4b6 Add SSH remote agent host bootstrap (#304882)
* Add SSH remote agent host bootstrap

Adds a new ISSHRemoteAgentHostService that automates connecting to a
remote machine via SSH, installing the VS Code CLI, starting
'code agent-host', and forwarding the agent host port back through
the SSH tunnel.

- New service interface and types in common/sshRemoteAgentHost.ts
- Full implementation using ssh2 in electron-browser/ with dynamic
  imports to respect layering rules
- Multi-step quick input flow for SSH connection details integrated
  into the remote agent host picker
- 'Connect via SSH' command registered in contributions

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

* Address PR review feedback

- Strip password/privateKeyPath from ISSHAgentHostConnection.config
  so secrets are not exposed to consumers after connect
- Redact connection tokens (?tkn=...) in all log output and error
  messages to prevent credential leakage
- Parse user@host:port format in SSH host input with proper validation
  for port range and missing components
- Guard onDidClose with a closed flag to prevent double-fire when
  dispose and SSH close/error events overlap

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

* SSH working through main process

Co-authored-by: Copilot <copilot@github.com>

* Resolve ssh configs

Co-authored-by: Copilot <copilot@github.com>

* progress

* Granular connect progress, test fix

Co-authored-by: Copilot <copilot@github.com>

* Test, refactor

Co-authored-by: Copilot <copilot@github.com>

* Resolve comments

Co-authored-by: Copilot <copilot@github.com>

* Get rid of cpu-features

* Move to shared process

Co-authored-by: Copilot <copilot@github.com>

* fixes

Co-authored-by: Copilot <copilot@github.com>

* add ssh2 to remote/package.json

* Cleanup and fixes

Co-authored-by: Copilot <copilot@github.com>

* fix

Co-authored-by: Copilot <copilot@github.com>

* fix

Co-authored-by: Copilot <copilot@github.com>

* resolve comments

Co-authored-by: Copilot <copilot@github.com>

* comments

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
2026-03-31 21:37:07 -07:00
Henning Dieterichs
b533ee4b6e Updates component explorer & adopts rspack for fixture serving (#306484) 2026-04-01 03:25:14 +00:00
Josh Spicer
fcbabe4c73 Merge extension-provided policy (#306874)
* Add merge script for extension configuration policies from distro

Adds build/lib/policies/mergeExtensionPolicies.ts which fetches the
distro's product.json (at the commit pinned in package.json) and merges
extensionConfigurationPolicy entries into policyData.jsonc.

The --export-policy-data step only captures policies from the OSS
configuration registry. Extension policies (e.g., Copilot settings)
are defined in vscode-distro's product.json and are not available in
the OSS dev build. This merge script bridges that gap.

Workflow: ./scripts/code.sh --export-policy-data && node build/lib/policies/mergeExtensionPolicies.ts

Also updates:
- policyExport integration test to run the merge step
- add-policy skill documentation with extension policy lifecycle

* Simplify extension policy format: drop localization block from distro

- mergeExtensionPolicies.ts now reads only description/category from
  the distro and synthesizes localization key/value pairs internally
- Integration test gracefully skips merge step when distro is unavailable
- Updated SKILL.md to document the simplified distro format

* docs: use gh auth token in policy export command

* Handle old distro format missing description/category fields

* docs: add troubleshooting section for merge step in policy skill

* Require description and category fields in extension policy entries

* Add extension configuration policies to policyData.jsonc

* Address PR feedback: fix disclaimer, log targetPath, strip GITHUB_TOKEN from test

* fix: revert extension policies from policyData.jsonc, remove console.log from test

Extension policies should only be added after the distro PR merges.
Test runner disallows console output in tests.

* Add mock distro test for mergeExtensionPolicies, remove merge from export test

- mergeExtensionPolicies.ts: add DISTRO_PRODUCT_JSON env var to
  override the distro path (for testing without private repo access)
- New test: creates a mock product.json, runs the merge script,
  verifies policies are added correctly and idempotently
- Export test: no longer runs the merge step (avoids needing
  distro access or GITHUB_TOKEN in CI)

* Update distro and regenerate policyData.jsonc with extension policies

* Fix CI: add extension policy fixture for export test

The export test now runs mergeExtensionPolicies using a checked-in
fixture file instead of requiring distro access or GITHUB_TOKEN.
When extension policies change in the distro, regenerate both
policyData.jsonc and the fixture file.

* Integrate extension policy merge into --export-policy-data

- Removed mergeExtensionPolicies.ts — no separate CLI tool needed
- --export-policy-data now reads build/lib/policies/extensionPolicies.json
  and merges extension policies into the output automatically
- Single command workflow: ./scripts/code.sh --export-policy-data
- Simplified test — no merge step, no GITHUB_TOKEN, no distro access
- Updated SKILL.md to document the simplified workflow

* Dynamic distro reading: --export-policy-data fetches from distro directly

- policyExport.contribution.ts reads distro product.json dynamically:
  1. DISTRO_PRODUCT_JSON env var (for testing)
  2. .build/distro/mixin/stable/product.json (local checkout)
  3. GitHub API with GITHUB_TOKEN (remote fetch)
- New scripts/export-policy-data.sh wrapper: sets up GITHUB_TOKEN
  via gh CLI and runs the export
- Deleted build/lib/policies/extensionPolicies.json (no static copy)
- Test uses DISTRO_PRODUCT_JSON with a fixture file
- Uses sandbox process.env and VSBuffer (renderer-safe)

* Replace bash wrapper with cross-platform TS script

- New build/lib/policies/exportPolicyData.ts: handles transpilation,
  GITHUB_TOKEN setup via gh CLI, and runs --export-policy-data
- Added 'npm run export-policy-data' script to package.json
- Removed scripts/export-policy-data.sh
- Updated SKILL.md and test error message

* Use OAuth device flow for GitHub token acquisition

exportPolicyData.ts now acquires tokens via:
1. GITHUB_TOKEN env var (if set)
2. gh CLI (fast, non-interactive)
3. GitHub OAuth device flow (interactive, no dependencies)

Based on vscode-copilot-chat's getToken.mts pattern.

* Fix error messages to reference npm run export-policy-data

* Fix disclaimer to reference npm run export-policy-data, clean up stale refs

* Clarify test fixture is static and not expected to track distro changes

* Add inline comment in test clarifying fixture is static

* SKILL.md: add step to update distro commit hash in package.json

* Remove inline comment per PR feedback

* Remove local .build/distro/ fallback path per PR feedback
2026-04-01 00:07:47 +00:00
vs-code-engineering[bot]
54493e6c24 Update distro commit (main) (#306927)
* Update distro commit to 1992012c

* Update distro commit to 084798d4

---------

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
2026-03-31 20:40:31 +00:00
João Moreno
60bb41a400 Merge commit 'fc23f2d26631c6a2c4bf9f69506ea74c90a32804' into joao/copilot-builtin 2026-03-31 20:02:44 +02:00
Matt Bierner
4162f5e97a Bump distro 2026-03-31 07:55:36 -07:00
vs-code-engineering[bot]
c69a19a58b Update distro commit (main) (#306692)
Update distro commit to f7bd750d

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
2026-03-31 10:48:54 +00:00
João Moreno
531a11cb38 Merge remote-tracking branch 'origin/main' into joao/copilot-builtin 2026-03-31 11:51:19 +02:00
Robo
d11c632ba8 chore: update electron@39.8.5 (#306292)
* chore: update electron@39.8.5

* chore: bump distro
2026-03-30 11:13:12 +00:00
Alex Ross
d96c52ea7d Bump version (#306223) 2026-03-30 08:43:58 +02:00
vs-code-engineering[bot]
958f822bbe Update distro commit (main) (#305764)
Update distro commit to 3431ef6b

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
2026-03-27 21:32:46 +00:00
Robo
bfd8d748ee chore: bump spdlog@0.15.8 (#305281)
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-26 21:32:56 +00:00
Robo
6eee457e0c chore: additional error categories for macOS cert api (#305154)
* chore: additional error categories for macOS cert api

* chore: bump distro
2026-03-26 14:49:27 +00:00
Lee Murray
dbc84712ae Update @vscode/codicons version to 0.0.46-1 (#304821)
Update @vscode/codicons version to 0.0.46-1 in package.json and package-lock.json

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-03-26 12:42:39 +00:00
vs-code-engineering[bot]
0f2816f565 Update distro commit (main) (#304506)
Update distro commit to d48ce3e6

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
2026-03-24 17:40:18 +00:00
Josh Spicer
60f0814b32 update distro to 6c98cfe8 (#304298)
update distro to 6c98cfe8dd
2026-03-23 23:27:17 +00:00
Rob Lourens
6c52b71c9a Bump copilot-sdk (#304267)
Co-authored-by: Copilot <copilot@github.com>
2026-03-23 21:58:56 +00:00
João Moreno
f88f49bd9d Merge commit '2b44ec5c3fcd5788a7fb6abaa231c6659018babc' into joao/copilot-builtin 2026-03-23 12:44:45 +01:00
Johannes Rieken
9b649d8c33 update version to 1.114 (#303975) 2026-03-23 07:28:25 +00:00
Robo
30c0bd03a4 chore: bump electron@39.8.3 (#303738)
* chore: bump electron@39.8.3

* chore: update build

* chore: bump distro
2026-03-22 07:20:14 +01:00
Alex Dima
0a0ba75021 Adopt new codicons version 2026-03-21 21:08:48 +01:00
dileepyavan
b978bf74b2 tmp directory should not be used by sandboxed commands (#303699)
* Fix terminal sandbox tmp handling and upgrade sandbox runtime

Fixes #299224

Fixes #303568

* fixing test

* merging changes
2026-03-21 10:20:44 +01:00
Isidor
1846413d5e update distro pointer 2026-03-20 10:53:55 +01:00
Robo
4315cca958 Revert "chore: bump electron@39.8.3" (#303369)
* Revert "chore: bump electron@39.8.3 (#302875)"

This reverts commit d4f7ac5014.

* chore: bump distro
2026-03-20 02:21:37 +00:00
Christof Marti
4be80a8b42 Update to @vscode/proxy-agent 0.40.0 (#298236) 2026-03-19 23:34:29 +00:00
João Moreno
029ce60f63 add copilot specific setup scripts 2026-03-19 11:27:06 +01:00
João Moreno
68ef7cdffc add copilot compilation in main build tasks
Co-authored-by: Copilot <copilot@github.com>
2026-03-19 11:23:38 +01:00
Robo
d4f7ac5014 chore: bump electron@39.8.3 (#302875)
* chore: bump electron@39.8.3

* chore: bump distro
2026-03-18 20:26:19 +00:00
Benjamin Pasero
a9a0540bd6 update distro (#302905) 2026-03-18 18:56:13 +00:00
vs-code-engineering[bot]
3b495c759f Update distro commit (main) (#302470)
Update distro commit to c056f4dc

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
2026-03-17 17:09:03 +00:00