Commit Graph

1879 Commits

Author SHA1 Message Date
Daniel Imms
e65fbaa63e Also clear scrollback in smoke tests 2025-11-14 11:23:37 -08:00
Matt Bierner
7f47e28c2b Use standard node utils instead of our custom ones 2025-11-12 15:26:54 -08:00
Matt Bierner
bf04914d59 Make sure js files still follow eslint semicolon rules 2025-11-12 13:54:56 -08:00
Aaron Munger
8e0a21f36d enable a few notebook smoke tests (#276793)
* more strenuous add/delete cell check

* unskip some tests
2025-11-11 17:12:27 -08:00
Matt Bierner
19606fb407 Fix in smoke tests 2025-11-10 10:31:47 -08:00
Matt Bierner
19c4ebdc10 Fix one more import 2025-11-10 10:11:32 -08:00
Matt Bierner
1136f75c5e Update imports 2025-11-10 09:28:50 -08:00
Benjamin Pasero
cb11538020 MCP related actions need to hide when AI features are disabled (fix #275478) (#275840) 2025-11-06 15:53:29 +00:00
Aaron Munger
ebd995adee disable flaky test (#275414) 2025-11-05 00:02:59 +00:00
Tyler James Leonhardt
b01211dec2 Add tool for searching settings UI (#274920)
* Add tool for searching settings UI

Since the input box is a monaco editor, it struggles.

* push
2025-11-04 00:28:26 +00:00
Bryan Chen
d3bdc2e8d5 Fixed error in starting mcp server on windows 2025-10-31 14:22:31 -07: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
08d06ad8c1 smoke - more checks for AI test (#274002)
* smoke - more checks for AI test

* change to set
2025-10-30 08:24:49 +01: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
41d5f1ce55 Disable tracing for now due to Playwright MCP behavior (#273171)
Haven't been able to figure out how to get tracing working without issues... so reverting the change.

Opened an issue here:
https://github.com/microsoft/playwright-mcp/issues/1166
2025-10-24 19:32:08 +00:00
Tyler James Leonhardt
90460f61a7 Have playwright MCP always trace (#273145)
Have MCP always trace

so that traces can be looked at easily.
2025-10-24 16:56:50 +00:00
Benjamin Pasero
898436fbe6 Clean up code layering suppressions (fix #272777) (#272834)
* Clean up code layering suppressions (fix #272777)

* Update test/unit/electron/index.js

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-23 09:28:38 +02: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
Matt Bierner
2f5b1d0cc4 Enforce single quote strings in tests too
Fixes #271473

Final pass of fixes and removes the exception for test files
2025-10-15 11:33:45 -07:00
Aaron Munger
32fbf1d72e skip all but the simplest (#270790) 2025-10-10 10:52:12 -07: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
Tyler James Leonhardt
32d3077232 Run npm ci & point to README in vscode-playwright-mcp (#270603)
Fixes https://github.com/microsoft/vscode/issues/270534
2025-10-09 10:25:24 -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
João Moreno
abb3be88db isolate smoke test runs between type (#269021)
also, move some fs calls to sync
also, increase retryDelay for rmSync
fixes #268437
2025-09-30 08:20:08 +00:00
Tyler James Leonhardt
25e67de531 await the listeners so that they're run before we mark "started" (#268578) 2025-09-26 16:48:01 -07:00
Raymond Zhao
888de56127 fix: pin SDK version (#268551)
Fixes the build
2025-09-26 21:10:46 +00:00
Logan Ramos
02a22c8d39 Update MCP schema to be more conscise (#268499)
* Update MCP schema to be more conscise

* Remove debug string
2025-09-26 16:52:18 +00:00
Tyler James Leonhardt
8f97965f31 Allow excluding tools from sub servers and allow the command palette to be kept open if a command is run (#267812) 2025-09-22 18:14:06 +00:00
Tyler James Leonhardt
bd46b9eb21 Fix vscode mcp dev server (#266998)
* use the `.js` suffix
* bump playwright mcp
2025-09-16 00:33:02 +00: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
Tyler James Leonhardt
6920dd084c Have multiplex just keep tools in sets. (#265747) 2025-09-08 22:08:51 +00: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
f1a5fb082b Go all in on stdio and gate all the tools behind the launch tool (#264088)
* Removes HTTP logic
* enable/disables automation tools based on if app is opened
* kill and re-create the playwright server based on if app is opened
2025-08-29 21:41:01 +00: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
7a46ac4d80 First pass at disabling tools that aren't useful for this MCP flow (#263298)
* First pass at disabling tools that aren't useful for this MCP flow

And enable the multiplexer server

* revert that

* revert that

* revert that

* disable a couple more

* add a start to improve model behavior & rewrite prompt file
2025-08-25 11:46:20 -07:00
Tyler James Leonhardt
a7cdeedd57 Add another server built on top of our own automation framework (#262984)
* Add another server built on top of our own automation framework

It's a big PR but a lot of this is boiler plate. It's just essentially wrapping our Automation framework in a bunch of tools.

* Lay the foundation for multiplexing
2025-08-22 17:20:22 -07: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
63a08f4e04 Mention debugging of the server (#262586) 2025-08-20 21:59:27 +00: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
dependabot[bot]
8dac0058fb Bump tmp from 0.0.33 to 0.2.4 in /test/integration/browser (#262506)
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.0.33 to 0.2.4.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.0.33...v0.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-20 16:19:47 +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
Tyler James Leonhardt
84d98ca969 Allow running in serverless web (#262390) 2025-08-19 13:42:25 -07:00