You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing is done differently on the desktop client and the web client.
17
31
18
-
=== Desktop
32
+
=== Running the Desktop version
19
33
20
34
. With the folder open in Visual Studio code, from the menu bar, select Run > 'Start Debugging' (or click the Run and Debug icon on the left sidebar and click on the green 'Run Extension' play button)
21
35
. A new Visual Studio Code instance will open with '[Extension Development Host]' in the header.
@@ -34,20 +48,20 @@ To run the tests suite, select 'Run Extension Tests' in the 'Run' view then, cli
34
48
You can also run the tests suite from a terminal using:
35
49
36
50
$ npm t
37
-
51
+
38
52
[NOTE]
39
53
====
40
54
In that case, you must close your Visual Studio code instance otherwise you will get an error:
41
55
42
56
Running extension tests from the command line is currently only supported if no other instance of Code is running.
43
57
====
44
58
45
-
=== Web
59
+
=== Running the Web version
46
60
47
61
On Linux to test the extension run the following command within the repository folder from the command line:
48
62
49
63
$ npm run build-web && npm run build-preview && npx @vscode/test-web --browserType=chromium --extensionDevelopmentPath=${PWD}
50
-
64
+
51
65
IMPORTANT: In development, you will need to disable security because resources are loaded through http://localhost:3000/static/devextensions
52
66
53
67
TIP: Looking at the browser's Web Developer tools can often help locate errors.
0 commit comments