Skip to content

Commit

Permalink
Merge pull request #13 from salesforce/bjls/r-n-d/readme
Browse files Browse the repository at this point in the history
Add description for VS Code settings
  • Loading branch information
guw authored Oct 18, 2021
2 parents 3215f97 + 4544552 commit 566a346
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,25 @@ You can download the latest build from the [Releases](https://github.com/salesfo
```
6. Open the _Extensions_ tab in VS Code
7. Select _Install from VSIX..._ and choose file built in the fourth step
8. Disable Maven import in VS Code settings (it can cause issues)
8. Enable Bazel import and disable Maven import in VS Code settings (it can cause issues)
```
{
"java.import.bazel.enabled": true,
"java.import.maven.enabled": false
}
```
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
```
{
"java.import.bazel.src.path": "<path-to-source>",
"java.import.bazel.test.path": "<path-to-test>"
}
```
e.g.:
```
{
"java.import.bazel.src.path": "/src/java",
"java.import.bazel.test.path": "/src/tests"
}
```
10. Once installed, restart VS Code

0 comments on commit 566a346

Please sign in to comment.