Skip to content

Commit 566a346

Browse files
authored
Merge pull request #13 from salesforce/bjls/r-n-d/readme
Add description for VS Code settings
2 parents 3215f97 + 4544552 commit 566a346

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,25 @@ You can download the latest build from the [Releases](https://github.com/salesfo
3030
```
3131
6. Open the _Extensions_ tab in VS Code
3232
7. Select _Install from VSIX..._ and choose file built in the fourth step
33-
8. Disable Maven import in VS Code settings (it can cause issues)
33+
8. Enable Bazel import and disable Maven import in VS Code settings (it can cause issues)
3434
```
3535
{
36+
"java.import.bazel.enabled": true,
3637
"java.import.maven.enabled": false
3738
}
3839
```
40+
9. Check source and test paths on the project. By default, source path is ```/src/main/java``` and test path is ```/src/test/java```. If source and/or test paths differ from the default, then add actual path in VS Code settings
41+
```
42+
{
43+
"java.import.bazel.src.path": "<path-to-source>",
44+
"java.import.bazel.test.path": "<path-to-test>"
45+
}
46+
```
47+
e.g.:
48+
```
49+
{
50+
"java.import.bazel.src.path": "/src/java",
51+
"java.import.bazel.test.path": "/src/tests"
52+
}
53+
```
3954
10. Once installed, restart VS Code

0 commit comments

Comments
 (0)