Skip to content

Commit cf00f8f

Browse files
committed
Update Chromium version documentation
1 parent dc3e1ce commit cf00f8f

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

docs/vscode-version.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,12 @@ When updating the minimum version in `package.json`, you should also follow the
3232
### Updating the Chromium target version
3333

3434
For the webview code, we use [esbuild](https://esbuild.github.io/) to bundle the code. This requires a target version of Chromium to be specified.
35-
This version should be the same as the version of Chromium that is bundled with the new minimum VS Code version. There are two
36-
methods to find this version.
35+
This version should be the same as the version of Chromium that is bundled with the new minimum VS Code version. To update
36+
the version, run:
3737

38-
#### Using the About Visual Studio Code dialog
39-
40-
Download the new minimum VS Code version from [the previous release versions](https://code.visualstudio.com/docs/supporting/faq#_previous-release-versions). Then,
41-
select "About Visual Studio Code" from the top menu. This will show the version of Chromium that is bundled with that version of VS Code.
42-
43-
![Chromium version in the About Visual Studio Code dialog](images/about-vscode-chromium.png)
44-
45-
In this case, the `target` would be `chrome114`.
46-
47-
#### Using the VS Code source code
48-
49-
You can find the version of Electron that VS Code uses by looking at its `package.json` file for a specific version
50-
(for example [the `package.json` for `1.82.0`](https://github.com/microsoft/vscode/blob/1.82.0/package.json#L153)).
51-
52-
![Electron version in the `package.json` file](images/electron-version.png)
53-
54-
Then, you can find the version of Chromium that is bundled with that version of Electron by looking at the
55-
Chromium version that is shown for that Electron version on [the Electron releases site](https://releases.electronjs.org/releases/stable)
56-
(for example [the `25.8.0` release](https://releases.electronjs.org/release/v25.8.0)):
57-
58-
![Chromium version in the Electron releases site](images/electron-chromium-version.png)
59-
60-
In this case, the `target` would be `chrome114`.
38+
```bash
39+
npx ts-node scripts/update-chromium-version.ts
40+
```
6141

6242
#### Troubleshooting
6343

0 commit comments

Comments
 (0)