Skip to content

Commit

Permalink
added default configs to support development with vscode (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonhutt authored Oct 15, 2024
1 parent 10693f2 commit ad29b3b
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"yaozheng.vscode-pde",
"vscjava.vscode-java-pack",
"esbenp.prettier-vscode"
]
}
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Attach to JDT-LS (Standard)",
"request": "attach",
"hostName": "localhost",
"port": 1044,
"projectName": "com.salesforce.bazel.eclipse.jdtls"
},
{
"type": "java",
"name": "Attach to JDT-LS (Syntax)",
"request": "attach",
"hostName": "localhost",
"port": 1045,
"projectName": "com.salesforce.bazel.eclipse.jdtls"
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"[java]": {
"editor.defaultFormatter": "redhat.java"
},
"java.format.settings.url": "tools/bazel-eclipse-formatter.xml",
"editor.formatOnSave": true,
"java.configuration.updateBuildConfiguration": "automatic"
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Package",
"type": "shell",
"command": "mvn clean -B package",
"windows": {
"command": "mvn clean -B package"
},
"group": "build",
"problemMatcher": []
},
{
"label": "Verify",
"type": "shell",
"command": "mvn -B verify",
"windows": {
"command": "mvn -B verify"
},
"group": "test",
"problemMatcher": []
}
]
}
12 changes: 12 additions & 0 deletions javaConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"projects": [
"bundles/com.salesforce.bazel.eclipse.core",
"bundles/com.salesforce.bazel.eclipse.jdtls",
"bundles/com.salesforce.bazel.eclipse.ui",
"bundles/com.salesforce.bazel.importedsource",
"bundles/com.salesforce.bazel.logback",
"bundles/com.salesforce.bazel.sdk"
],

"targetPlatform": "releng/target-platform/target-platform-dev.target"
}

0 comments on commit ad29b3b

Please sign in to comment.