Commit Graph

407 Commits

Author SHA1 Message Date
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
Daniel Imms
95c9166d0b Revert "Merge pull request #250670 from microsoft/copilot/fix-250669"
This reverts commit aa095f877e, reversing
changes made to 13ff4544a7.
2025-06-06 09:49:55 -07:00
Daniel Imms
aa095f877e Merge pull request #250670 from microsoft/copilot/fix-250669
Consolidate write data to terminal and send sequence commands
2025-06-06 07:34:27 -07:00
Daniel Imms
ab6d98e599 Fix extraction of tab title name (#250621)
* Fix extraction of tab title name

Fixes microsoft/vscode-internalbacklog#5499

* Engineering - update agent pool

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-06-06 09:11:43 +02:00
copilot-swe-agent[bot]
670d678f26 Update test files to use SendSequence instead of WriteDataToTerminal
Co-authored-by: Tyriar <2193314+Tyriar@users.noreply.github.com>
2025-06-05 10:52:26 +00:00
Robo
12326f9906 chore: update to Electron 35 (#245423)
* chore: bump electron@35.0.1

* chore: update types/node@22.x

* chore: update web types for node v22.x

* chore: bump electron@35.1.2

* chore: update node.js build

* chore: update app.dock usage

Refs 71f3ff6bf2

* chore: bump electron@35.1.4

* chore: bump electron@35.1.5

* ci: bump sysroot to glibc 2.28 and gcc 10.5.0

* ci: enable timeout for smoketests

* chore: bump min glibcxx to 3.4.26 for server

* Revert "ci: enable timeout for smoketests"

This reverts commit afb637e85d.

* chore: update debian dependencies

* fix: workaround npm.ps1 argument parsing with powershell

* chore: update rpm dependencies

* test: partially revert changes from 242535

* test: remove redudant keybinding dispatch for selectTab

* test: fix test failure from running configured tasks

* test: focus settings editor for preferences.test.ts

* node - adopt compile cache (#246835)

* node - adopt compile cache

* adopt for utility process

* tweaks

* log state of compilation cache

* Revert "log state of compilation cache"

This reverts commit f3840387a583013834762e2c44f6e8424929297f.

* Revert "node - adopt compile cache (#246835)"

This reverts commit 673a00cab66c9bac87f3cd27b80efa41c80150f1.

* chore: update builds

* chore: bump electron@35.2.0

* chore: bump electron@35.2.1

* chore: bump electron@35.2.2

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2025-05-09 19:03:36 +09:00
Samuel Rigaud
e975fc9be8 test: fix typos (#247259)
Co-authored-by: Samuel Rigaud <rigaud@gmail.com>
2025-04-23 23:38:49 +00:00
Sandeep Somavarapu
760b96eca6 wait until extension is installed - if it is taking longer. Fix #245396 (#245863) 2025-04-07 13:55:11 +02:00
Benjamin Pasero
a8c6b3fd45 Improve process termination handling in smoke tests (#245434)
* Improve process termination handling in smoke tests

* .
2025-04-03 12:31:04 +02:00
Benjamin Pasero
621392c665 refactor: enhance process instance registration and termination logging (#245409) 2025-04-03 09:49:38 +02:00
Benjamin Pasero
cf1cfc5f0d fix: improve process termination handling in launch and Code class (#245380) 2025-04-02 21:24:07 +02:00
Benjamin Pasero
3edf73df8a tests - drop more flags (#245357) 2025-04-02 11:33:09 -07:00
Benjamin Pasero
8cd6551cb8 smoke - drop option to use swiftshader (#245354) 2025-04-02 17:38:55 +02:00
Benjamin Pasero
992c6150c3 smoke - try to kill earlier when its safe (#245347) 2025-04-02 16:51:10 +02:00
Benjamin Pasero
10fc28b3b8 tests - enable verbose arg for extension installation tests (#245320) 2025-04-02 13:33:19 +02:00
Benjamin Pasero
71c9069cd8 smoke - try to avoid tree-kill for terminating process (#245330)
On Linux, this will also attempt to kill the zygote process (which is a child of the main process). This causes all sorts of issues.

Also, our integration tests just kill the main process and not a tree of processes, so we can align here.
2025-04-02 12:52:35 +02:00