Commit Graph

422 Commits

Author SHA1 Message Date
dependabot[bot]
393b54fc07 Bump minimatch from 3.1.2 to 3.1.5 in /test/automation (#300521)
Bumps [minimatch](https://github.com/isaacs/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/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  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-11 16:55:45 +00:00
Megan Rogge
b40b1dbc3f improve specificity for chat selector to fix smoketest (#292922) 2026-02-04 12:36:26 -08:00
Robo
d0e516655a fix: rename product executable on macOS (#291948)
* fix: rename product executable name on macOS

* chore: update test/automation/src/electron.ts

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

* chore: update test/automation/src/electron.ts

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

* chore: rename in additional places

* chore: rename in code-perf.js

* chore: create symlink for backwards compatibility

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-03 14:50:21 -08:00
Peng Lyu
5366853409 Support multi window scenarios in vscode mcp server (#289250)
* Add window management tools for multi-window support

* Refactor window management tools to remove title references and simplify responses

* Refactor PlaywrightDriver to use readonly page property and remove _currentPage references

* Update test/mcp/src/automationTools/windows.ts

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

* Fix URL matching and CDP session handling in multi-window support (#289261)

* Initial plan

* Address code review feedback: improve URL matching and CDP session handling

- Improve URL matching in switchToWindow to prefer exact matches before substring matches
- Clear CDP session when switching windows to prevent using stale sessions
- Add comprehensive documentation explaining the matching strategy and CDP session behavior

Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

* Add automation tools for window interactions and update multiplex server configuration

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>
2026-02-02 16:11:12 -08:00
Benjamin Pasero
1951d88056 Chat Anonymous: can send a chat message with anonymous access (fix #292296) (#292341) 2026-02-02 17:14:52 +00:00
Matt Bierner
e6f0ffde9c Merge pull request #291937 from mjbvz/dev/mjbvz/severe-buzzard
Update build ts versions
2026-01-31 15:34:15 -08:00
Copilot
b31c729a39 Add smoke test for anonymous chat access (#291953)
* Initial plan

* Add smoke test for anonymous chat access

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

* fix

* .

* .

* .

* .

* .

* .

* .

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2026-01-31 16:33:11 +00:00
Matt Bierner
ee01088b74 Update roots 2026-01-30 13:12:58 -08:00
Tyler James Leonhardt
a69f194713 A semi-working way to send a message in chat (#290309)
* A semi-working way to send a message in chat

The old way stopped working... idk why... and this way isn't perfect - it has to be written on 1 line.... but I guess it's something...

* add this extra check that other places use
2026-01-26 07:13:20 +01:00
Tyler James Leonhardt
52bc869c5d Allow passing in an extension to debug (#290306)
So that the automation can debug an extension
2026-01-26 01:50:20 +00:00
Benjamin Pasero
e2144d22df refactor - improve workspace path handling in smoke tests (#287706) 2026-01-14 06:53:34 +00:00
Peng Lyu
e64d58389d vscode mcp: support custom workspace path; enable restart tool (#286297)
* vscode mcp: support specifying workspace path; enable restart tool

* fix: include workspace path in launch options for browser

* fix: ensure workspace path is set for tests requiring a workspace

* Address PR review comments: support optional workspace path

* fix: standardize workspace path variable naming in tests

* fix: fallback to rootPath for workspacePath in CI environments
2026-01-13 16:38:31 -08:00
Megan Rogge
9986468dd2 add accessibility tests for more of the workbench (#286446) 2026-01-08 21:33:47 +01:00
Benjamin Pasero
851852ceca Smoke test failure: verifies that "hot exit" works for dirty files (fix #286330) (#286333) 2026-01-08 06:36:43 +01:00
Ladislau Szomoru
dd65f0c5ef Engineering - switch from npm-run-all to npm-run-all2 (#284087)
* Introduce compilation error

* Engineering - limit the tasks that we run

* Limit available memory to simulate an OOM

* Try to update the task

* Remove the use of npm-run-all

* Fix script

* Another try

* Try npm-run-all2

* Restore tasks, keep npm-run-all2

* Switch from npm-run-all to npm-run-all2

* Revert changes that were used for testing
2026-01-05 15:49:42 +01:00
Raymond Zhao
41997d514d chore: npm audit fix (#279437)
* chore: npm audit fix

* chore: npm audit fix in extensions

* chore: npm audit fix in tests

* Catch last few
2025-11-25 20:29:09 +00:00
Robo
4c5bfb172a feat: create versioned resources for windows setup (#263998)
* feat: create versioned resources for windows setup

* chore: use inno_updater to remove old installation

* chore: remove old installation as part of setup

* chore: update explorer-command

* chore: prefer session-end

* chore: uninst delete updating_version

* chore: make session-ending write synchronous

* chore: cleanup updateService.win32.ts

* chore: invoke inno_updater gc path for non background update

* chore: move session-end path to runtime

* chore: use commit for updating_version

* chore: fix invalid string

* chore: set appUpdate path

* chore: update inno_updater

* chore: empty commit for testing

* chore: some cleanups

1) Check for session-ending flag in appx and tunnel callsites
2) Move gc for background update to cleanup phase in updateservice
3) Set update state to ready when there is a running inno_setup

* chore: disallow same version update

* chore: disallow application launch in the middle of update

* chore: empty commit for testing

* chore: bump inno_updater

* chore: empty commit for testing

* chore: move gc to update startup

* chore: move feature behind insider only check

* chore: bump inno_updater

* chore: bump explorer-command

* fix: build

* fix: gc for background update in system setup

* chore: create separate cli entrypoints for build

* fix: check for setup mutex created by inno

* chore: remove problematic updatingVersionPath deletion

* chore: remove redundant update check

* chore: bump inno_updater

* chore: fix build

* chore: bump inno updater
2025-11-24 21:32:12 +09:00
Matt Bierner
82e3ec2f1f Workaround https://github.com/microsoft/playwright/issues/37418 2025-11-21 13:36:46 -08:00
Matt Bierner
19c4ebdc10 Fix one more import 2025-11-10 10:11:32 -08:00
Tyler James Leonhardt
bc5f6481a5 Enable tracing (#274203)
* Enable tracing

So that we can upload traces instead of just videos.

* feedback
2025-10-30 23:19:54 +00:00
Benjamin Pasero
6808f75d53 chat - add a smoke test to check for AI disabling support (#273940) 2025-10-29 13:16:26 +00:00
Ladislau Szomoru
4c3d8cf64a Git - adopt the new icons for the statusbar command (#273789)
* Git - adopt the new icons

* Attempt to fix tests
2025-10-28 19:37:40 +00:00
Tyler James Leonhardt
c19948ed52 Use a bigger video size (#273449) 2025-10-26 20:38:49 -07:00
Tyler James Leonhardt
c40db410b9 Add a send message tool for automation & mcp (#273306)
* Add a send message tool for automation & mcp

This also sents up the posibility of smoke tests.

* Add demonstrate.md and remove prompt

* add simple notification util

* notif
2025-10-26 14:35:03 +08:00
Tyler James Leonhardt
af1cbea727 Add --video and --autostart (#271849)
This enables:
* Playwright video recording
* Starting the Code OSS on server start (for clients like Copilot CLI that don't react to tool list changes)
2025-10-16 23:18:23 +00:00
Aaron Munger
57409952f0 re-enable tests to look for failure (#270299)
* re-enable tests to look for failure

* edit to focus back in the cell

* make command available for smoke test
2025-10-10 10:01:16 -07:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Benjamin Pasero
af0b5ba59c smoke - use workbench.action.clearEditorHistoryWithoutConfirm consistently" (#266249)
Revert "Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfir…"

This reverts commit c8f1c4eca9.
2025-09-12 06:19:06 +02:00
Benjamin Pasero
c8f1c4eca9 Revert "smoke - use workbench.action.clearEditorHistoryWithoutConfirm consistently" (#265471)
Revert "smoke - use `workbench.action.clearEditorHistoryWithoutConfirm` consi…"

This reverts commit e910fd5e1d.
2025-09-06 13:28:15 +02:00
Benjamin Pasero
e910fd5e1d smoke - use workbench.action.clearEditorHistoryWithoutConfirm consistently (#265146) 2025-09-05 13:15:02 +02:00
Tyler James Leonhardt
3c90d276e0 Have the lifecycle dependent on the Page since we only support 1 window for now (#264099)
This makes sure that closing the window actually closes everything to workaround the macOS behavior of having all windows closed but it's still running.
2025-08-29 16:07:36 -07:00
Tyler James Leonhardt
443daf8d60 Allow configuring userDataDir, ExtensionDir, & usage of in-memory Secret Storage (#263451)
* Allow configuring userDataDir, ExtensionDir, & usage of in-memory Secret Storage

ref https://github.com/microsoft/vscode/issues/262164

* fix a couple references of getRandomUserDataDir
2025-08-27 15:31:27 -04:00
Tyler James Leonhardt
d436b22dca Allow modals in automation (#262808) 2025-08-22 15:54:31 +02:00
Tyler James Leonhardt
6e36a27f3c Revert "Allow modals in automation" (#262806)
Revert "Allow modals in automation (#262510)"

This reverts commit 038c39cd5c.
2025-08-21 23:23:25 +00:00
Tyler James Leonhardt
038c39cd5c Allow modals in automation (#262510)
* Allow modals in automation

This allows for the opt-in behavior of allowing dialogs while using automation.

When opted in, we also switch over to using custom dialogs & the simple file picker so that the automation can control it.

This was added so that we can do auth flows, which uses dialogs. Now we will be able to complete an auth flow (with the help of the user in the browser) and automate interacting with chat via the development MCP server.

* Instead use custom for smoke tests

* Go back to command but have a context key for automation

* Workaround terminal smoke tests
2025-08-21 18:07:11 -04:00
Tyler James Leonhardt
14077dbc5b Inject alpha playwright in to our automation in MCP case (#262564)
This fixes things for MCP... with a hack. But Playwright is not interested in having interop between Playwright & Playwright MCP atm... so this is the best we can do for now.
2025-08-20 21:02:18 +00:00
Benjamin Pasero
d2edee2476 Revert "Allow dialogs in automation" (#262444)
Revert "Allow dialogs in automation (#262417)"

This reverts commit 53c9922948.
2025-08-20 06:24:03 +00:00
Tyler James Leonhardt
53c9922948 Allow dialogs in automation (#262417)
So that mcp can use dialogs and let the user answer the dialogs. This is critical for auth.

This also switches to using the custom dialog in electron so that the driver can interact with it.
2025-08-19 18:56:19 -07:00
Copilot
3f44d80059 Implement workspace-aware default window sizing with unified API (1440x900 for workspaces, 1200x800 for empty windows) (#262266) 2025-08-19 10:58:58 +00:00
Tyler James Leonhardt
4a653ec816 Add initial MCP server (#261898) 2025-08-15 23:25:13 -07:00
dependabot[bot]
fd7fa54674 Bump tmp from 0.2.1 to 0.2.4 in /test/automation (#260179)
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.1 to 0.2.4.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.1...v0.2.4)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 21:08:26 +00:00
dependabot[bot]
f84d8accc1 Bump brace-expansion from 1.1.11 to 1.1.12 in /test/automation (#256538)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 13:46:29 -07:00
Matt Bierner
e51d57aa5c Update target for build and test scripts 2025-08-04 17:28:08 -07:00
Daniel Imms
a3c8ce1482 Force accept function in dispatchKeybinding
One common source of flakiness is just dispatching a keybinding and
not verifying it did its thing. This change adds a few accept functions
and also forces callers to provide an async function so that the caller
considers adding one as it's the norm, not the edge case.

Fixes #246731
2025-07-10 06:49:16 -07:00
Benjamin Pasero
367fc5f243 exp - introduce and use flag to disable experiments (#254057)
* exp - introduce and use flag to disable experiments

* fix
2025-07-04 09:17:56 +00:00
Robo
0f5ce4a087 chore: reland windows 2022 agent for product builds (#251560)
* chore: bump gulp-electron@1.37.0

* chore: update package-lock.json

* Reland "Fix extraction of tab title name" (#251379)"

This reverts commit 5d1bd8f13d.

Reason for revert:

Icon issue was side affect of the windows agent change that affected
the rcedit binary which has now been addressed.

* chore: bump gulp-electron@1.37.1
2025-06-18 12:00:44 +02:00
Benjamin Pasero
5d1bd8f13d Revert "Fix extraction of tab title name" (#251379)
* Revert "Fix extraction of tab title name (#250621)"

This reverts commit ab6d98e599.

* skip test
2025-06-13 15:38:51 +02:00
Robo
7e4d8e92bc (Reland) fix: smoke tests for stable with editcontext enabled (#251074) 2025-06-10 00:44:09 -07:00
Robo
94a9756f46 Revert "fix: smoke tests for stable with editcontext enabled (#251055)" (#251075)
This reverts commit 433220e98a.
2025-06-10 08:47:30 +02:00
Robo
433220e98a fix: smoke tests for stable with editcontext enabled (#251055) 2025-06-09 20:36:07 -07:00