Skip to content

Commit a2927eb

Browse files
committed
Added info about VS Code workspace
1 parent a990bed commit a2927eb

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.md

+46
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,49 @@ Test pages:
9797

9898
[testcasessimplerules]: https://testcases.agrd.dev/Filters/simple-rules/test-simple-rules.html
9999
[testcasesscriptrules]: https://testcases.agrd.dev/Filters/script-rules/test-script-rules.html
100+
101+
### Visual Studio Code Workspace
102+
103+
If you're using Visual Studio Code for development, it may be easier to work
104+
with the monorepo if you use the workspace functionality. To do this, create a
105+
`tsurlfilter.code-workspace` file in the monorepo root directory.
106+
107+
`jest.runMode` and `jest.enable` would be useful to those that use
108+
[Jest][jestplugin] plugin.
109+
110+
```json
111+
{
112+
"folders": [
113+
{
114+
"path": "packages/tsurlfilter",
115+
},
116+
{
117+
"path": "packages/tswebextension",
118+
},
119+
{
120+
"path": "packages/agtree",
121+
},
122+
{
123+
"path": "packages/css-tokenizer",
124+
},
125+
{
126+
"path": "packages/adguard-api",
127+
},
128+
{
129+
"path": "packages/examples/adguard-api",
130+
},
131+
{
132+
"path": "packages/examples/tswebextension-mv2",
133+
},
134+
{
135+
"path": "packages/examples/tswebextension-mv3",
136+
}
137+
],
138+
"settings": {
139+
"jest.runMode": "on-demand",
140+
"jest.enable": true,
141+
}
142+
}
143+
```
144+
145+
[jestplugin]: https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest

0 commit comments

Comments
 (0)