c1ca63f5f5 Default to an installed build, and report missing video tooling (#331881)
* Default to an installed build, and report missing video tooling

Three problems surfaced running the skill from a fresh checkout.

Nothing ran without a target. With no flags the runner used the build from the
checkout, which only exists after compiling the product, so the documented
starting point failed to launch. Reproducing a reported issue means running the
shipped product anyway, so with no target flag it now finds an installed VS Code
Insiders (falling back to Stable) and logs which one it chose. `--dev` selects the
checkout build, and `--build` still pins an exact install.

A missing ffmpeg was only discovered after the run, as a raw ENOENT, and it threw
out of `runScenario` after the report had been written. The runner now checks for
ffmpeg and ffprobe before launching anything and prints the install command for
the platform, and caption rendering can no longer fail a run that has already
produced its evidence.

The window did not fill the recording. The canvas is 1920x1080 while VS Code
sizes its own window (1440x900 with a workspace, 1200x800 empty), so the capture
showed the window in the top-left corner surrounded by dead space. The window is
now sized to the canvas once recording is on; a window larger than the display
still renders at that size, so this holds on smaller screens.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: adb443eb-11e5-40a1-8608-7f593fa79485

* Find an installed ffmpeg, pace the steps, and classify blocked steps

Follow-up to the same skill run.

Captions were missing even though ffmpeg was installed. A PATH edit only reaches
processes started afterwards, so an editor that was already running never sees
it, and the runner concluded ffmpeg was absent. It now looks in the usual install
locations as well as PATH, which is the difference between an annotated recording
and a raw one on a machine that already has ffmpeg.

Steps flowed past too quickly to read. A caption is only legible for as long as
its step is on screen, and steps that assert rather than type can complete in a
few hundred milliseconds. Each finished step is now held briefly, controlled by
`stepPauseMs` and disabled with `0` for timing-sensitive scenarios.

Steps that cannot be automated were indistinguishable from ones that were merely
unavailable. `skip` now takes `needs: human` or `needs: infrastructure`: the first
means a person has to check it, the second means the harness could do it but
cannot yet, which is an enhancement request rather than a permanent limit. The
distinction is recorded in the manifest, highlighted in the report, shown on the
video caption, and printed at the end of the run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: adb443eb-11e5-40a1-8608-7f593fa79485

* Report the quality of the build that ran, and finish the target options

Review follow-ups.

The evidence labelled every installed run `Dev`. Quality was read from the
environment, which only describes a build made from this checkout, so a run
against installed Insiders was reported as Dev in both the manifest and the
report - the evidence named the wrong product. An installed build stamps its own
quality in `product.json`, so that is now the source when a build path is given.
This also corrects `--build`, which had the same problem before this change.

Linux missed Snap installs. Snap keeps the app under a read-only revision root,
so a machine with VS Code installed only through Snap found nothing and fell back
to the unbuilt checkout - the exact failure the new default exists to avoid.

The web launcher recorded 1920x1080 while sizing the page to 1440x900, so the
no-empty-margins claim did not hold there. It now matches the canvas while
recording and keeps its established size otherwise, so smoke runs are unchanged.

`--dev` was accepted but undocumented in the runner's own help, which now lists
all three targets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: adb443eb-11e5-40a1-8608-7f593fa79485

* Detect a staged update instead of timing out

VS Code on Windows applies a downloaded update by swapping the executable during
startup, so a launch attempt exits before showing a window. Playwright then waits
the full launch timeout and reports that the process "likely crashed or hung",
which sends the reader looking for crash dumps that do not exist.

Insiders downloads an update most days, so anyone reproducing an issue will meet
this. A `new_<exe>` beside the target is the marker, and checking for it turns a
60s misleading timeout into an immediate statement of the cause and the fix.

Confirmed the launch failure is environmental rather than harness behaviour: a
bare Playwright launch of the same installed build, with none of this code in the
path, also never receives a window while the update is staged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: adb443eb-11e5-40a1-8608-7f593fa79485

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: adb443eb-11e5-40a1-8608-7f593fa79485
2026-08-21 18:13:57 +00:00
2026-08-12 11:19:57 +02:00
2026-08-12 01:12:25 +00:00
2026-07-12 20:30:31 +00:00

Visual Studio Code - Open Source ("Code - OSS")

Feature Requests Bugs Gitter

The Repository

This repository ("Code - OSS") is where we (Microsoft) develop the Visual Studio Code product together with the community. Not only do we work on code and issues here, but we also publish our roadmap, monthly iteration plans, and our endgame plans. This source code is available to everyone under the standard MIT license.

Visual Studio Code

VS Code in action

Visual Studio Code is a distribution of the Code - OSS repository with Microsoft-specific customizations released under a traditional Microsoft product license.

Visual Studio Code combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.

Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on the Visual Studio Code website. To get the latest releases every day, install the Insiders build.

Contributing

There are many ways in which you can participate in this project, for example:

If you are interested in fixing issues and contributing directly to the codebase, please see the document How to Contribute, which covers the following:

Feedback

See our wiki for a description of each of these channels and information on some other available community-driven channels.

Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the node debug adapter and the mono debug adapter repositories are separate from each other. For a complete list, please visit the Related Projects page on our wiki.

Bundled Extensions

VS Code includes a set of built-in extensions located in the extensions folder, including grammars and snippets for many languages. Extensions that provide rich language support (inline suggestions, Go to Definition) for a language have the suffix language-features. For example, the json extension provides coloring for JSON and the json-language-features extension provides rich language support for JSON.

Development Container

This repository includes a Visual Studio Code Dev Containers / GitHub Codespaces development container.

  • For Dev Containers, use the Dev Containers: Clone Repository in Container Volume... command, which creates a Docker volume for better disk I/O on macOS and Windows.

    • If you already have VS Code and Docker installed, you can also click here to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
  • For Codespaces, install the GitHub Codespaces extension in VS Code, and use the Codespaces: Create New Codespace command.

Docker / the Codespace should have at least 4 cores and 6 GB of RAM (8 GB recommended) to run a full build. See the development container README for more information.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT license.

S
Description
Visual Studio Code
Readme
2.4 GiB
Languages
TypeScript 79.4%
jsonc 16.4%
CSS 1.4%
JavaScript 0.6%
C 0.6%
Other 1.3%