@vscode/test-web 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -5
- package/fs-provider/package-lock.json +1736 -0
- package/fs-provider/package.json +4 -4
- package/out/index.d.ts +4 -0
- package/out/index.js +26 -2
- package/out/server/app.js +7 -4
- package/out/server/workbench.js +10 -2
- package/package.json +24 -24
package/README.md
CHANGED
|
@@ -31,12 +31,20 @@ vscode-test-web --browserType=chromium --extensionDevelopmentPath=$extensionLoca
|
|
|
31
31
|
|
|
32
32
|
Open VS Code in the Browser on a folder with test data from the local disk:
|
|
33
33
|
|
|
34
|
-
```
|
|
34
|
+
```sh
|
|
35
35
|
vscode-test-web --browserType=chromium --extensionDevelopmentPath=$extensionLocation $testDataLocation
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
VS Code for the Web will open on a virtual workspace (scheme `vscode-test-web`), backed by a file system provider that gets the file/folder data from the local disk. Changes to the file system are kept in memory and are not written back to disk.
|
|
39
39
|
|
|
40
|
+
Open VS Code in the Browser with external network access:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
vscode-test-web --browserType=chromium --browserOption=--disable-web-security extensionDevelopmentPath=$extensionLocation
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This allows the extension being tested to make network requests to external hosts.
|
|
47
|
+
|
|
40
48
|
Via API:
|
|
41
49
|
|
|
42
50
|
```ts
|
|
@@ -68,6 +76,7 @@ CLI options:
|
|
|
68
76
|
|Option|Argument Description|
|
|
69
77
|
|-----|-----|
|
|
70
78
|
| --browser | The browser to launch: `chromium` (default), `firefox`, `webkit` or `none`. |
|
|
79
|
+
| --browserOption | Command line argument to use when launching the browser instance. Argument can be provided multiple times. |
|
|
71
80
|
| --extensionDevelopmentPath | A path pointing to an extension under development to include. |
|
|
72
81
|
| --extensionTestsPath | A path to a test module to run. |
|
|
73
82
|
| --quality | `insiders` (default), or `stable`. Ignored when sourcesPath is provided. |
|
|
@@ -90,13 +99,13 @@ Corresponding options are available in the API.
|
|
|
90
99
|
|
|
91
100
|
## Development
|
|
92
101
|
|
|
93
|
-
- `
|
|
102
|
+
- `npm i && npm run install-extensions`
|
|
94
103
|
- Make necessary changes in [`src`](./src)
|
|
95
|
-
- `
|
|
104
|
+
- `npm run compile` (or `npm run watch`)
|
|
96
105
|
|
|
97
|
-
- run `
|
|
106
|
+
- run `npm run sample` to launch VS Code Browser with the `sample` extension bundled in this repo.
|
|
98
107
|
|
|
99
|
-
- run `
|
|
108
|
+
- run `npm run sample-tests` to launch VS Code Browser running the extension tests of the `sample` extension bundled in this repo.
|
|
100
109
|
|
|
101
110
|
|
|
102
111
|
## License
|