Commit Graph

2014 Commits

Author SHA1 Message Date
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
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
Copilot
a496091135 Fix smoke test directory conflicts by adding unique workspace path suffixes (#262268) 2025-08-19 12:57:48 +02:00
Tyler James Leonhardt
c81631ed89 Use stdio for the vscode playwright mcp (#262260)
* Use stdio for the vscode playwright mcp

makes for easier management... since it can be compiled when launched.

* add to readme
2025-08-19 08:27:10 +02: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
Benjamin Pasero
55377133de Smoke-test failure: directory not empty (fix #260110) (#260121) 2025-08-06 16:00:13 +00:00
Benjamin Pasero
27c10fba46 [chore] bump @types/mocha to match mocha (#260034) 2025-08-06 11:54:24 +00:00
Aman Karmani
934593aeb1 fix some typos (#259747) 2025-08-06 11:49:35 +00:00
Matt Bierner
e51d57aa5c Update target for build and test scripts 2025-08-04 17:28:08 -07:00
Alex Ross
363abcb2f5 Disable notebook "check object leaks" test (#258417) 2025-07-29 06:23:47 -07:00
Alex Ross
6d8f0ed1c5 Disable flaky task tests (#256249)
See https://github.com/microsoft/vscode/issues/227367
2025-07-16 07:18:29 -07:00
Megan Rogge
dff97cf6a9 add editor a11y playwright tests (#255899) 2025-07-15 05:38:21 +02:00
Daniel Imms
e979afe960 Merge branch 'main' into tyriar/246731 2025-07-14 05:18:02 -07:00
Martin Aeschlimann
6dd2b84fa2 Merge pull request #254690 from madskristensen/schemastore-subdomain-fix
Updated references to schemastore.org
2025-07-11 12:10:29 +02:00