From ad29b3baed2ce07fabe9e2631cd5f62e26e2cd54 Mon Sep 17 00:00:00 2001 From: Lon Hutt Date: Mon, 14 Oct 2024 22:45:07 -0600 Subject: [PATCH] added default configs to support development with vscode (#507) --- .vscode/extensions.json | 7 +++++++ .vscode/launch.json | 21 +++++++++++++++++++++ .vscode/settings.json | 8 ++++++++ .vscode/tasks.json | 27 +++++++++++++++++++++++++++ javaConfig.json | 12 ++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json create mode 100644 javaConfig.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..de03548d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "yaozheng.vscode-pde", + "vscjava.vscode-java-pack", + "esbenp.prettier-vscode" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..f60bfab5 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..3cbfb58c --- /dev/null +++ b/.vscode/settings.json @@ -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" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..8811ffa2 --- /dev/null +++ b/.vscode/tasks.json @@ -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": [] + } + ] +} diff --git a/javaConfig.json b/javaConfig.json new file mode 100644 index 00000000..c6f44209 --- /dev/null +++ b/javaConfig.json @@ -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" +}