Skip to content

Commit d6acae9

Browse files
build(web): update web mode deps (#6460)
- Update web mode dependencies so we can run in debug mode - Update docs w/ info on how to fix these dependencies as they go stale often. Otherwise we may not be able to run in debug mode. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: nkomonen-amazon <[email protected]>
1 parent 085ad38 commit d6acae9

File tree

3 files changed

+150
-41
lines changed

3 files changed

+150
-41
lines changed

docs/web.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can run the Web mode implementation of the extension in the following ways.
1616
- To see logs, using the Command Palette search: `Toggle Developer Tools`. Then go to the `Console` tab. In web mode VS Code seems to duplicate log messages, idk how to fix this.
1717
- The difference between web mode and Node.js/desktop is that in web mode everything runs in browser environment so certain things like Node.js modules will **not** be available.
1818

19-
## Running in an actual Browser
19+
## Running in an actual Browser (Recommended)
2020

2121
The following steps will result in a Chrome window running with VS Code
2222
and the web version of the AWS Toolkit extension installed:
@@ -43,7 +43,7 @@ and the web version of the AWS Toolkit extension installed:
4343
const context = browser
4444
```
4545

46-
2. In the `Run & Debug` menu select the `Extension (Chrome)` option
46+
2. In the `Run & Debug` menu select the `Extension Web` option
4747

4848
> Note: To stop the debug session, you need to click the read `Disconnect` button multiple times
4949

@@ -62,6 +62,12 @@ do the following:
6262

6363
Now when you run the extension in the browser it will do CORS checks.
6464

65+
### Troubleshooting
66+
67+
- `Extension Web` fails to launch
68+
- Update `@vscode/test-web` by running `$ npm install @vscode/test-web@latest`
69+
- Update/install playwright with `$ npx playwright install`. This will be mentioned in one of the build tasks outputs.
70+
6571
## Running in [vscode.dev](https://vscode.dev)
6672

6773
The following will explain how to get your latest local development changes running in the actual `vscode.dev`. Use this if you want to test on an actual VS Code Web instance.

package-lock.json

Lines changed: 141 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@typescript-eslint/parser": "^7.14.1",
5252
"@vscode/codicons": "^0.0.33",
5353
"@vscode/test-electron": "^2.3.8",
54-
"@vscode/test-web": "^0.0.54",
54+
"@vscode/test-web": "^0.0.65",
5555
"@vscode/vsce": "^2.19.0",
5656
"eslint": "^8.56.0",
5757
"eslint-config-prettier": "^9.1.0",

0 commit comments

Comments
 (0)