From 6dd5363854ace3a38965b03388b2d5d37a8d3d56 Mon Sep 17 00:00:00 2001 From: Wispy <101812473+WispySparks@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:03:44 -0600 Subject: [PATCH] Add Java Units library to autocomplete (#734) --- .../resources/gradle/java/.vscode/settings.json | 12 ++++++++++++ .../resources/gradle/javadt/.vscode/settings.json | 14 +++++++++++++- .../gradle/javaromi/.vscode/settings.json | 12 ++++++++++++ .../resources/gradle/javaxrp/.vscode/settings.json | 12 ++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) diff --git a/vscode-wpilib/resources/gradle/java/.vscode/settings.json b/vscode-wpilib/resources/gradle/java/.vscode/settings.json index f5ed934d..612cdd0d 100644 --- a/vscode-wpilib/resources/gradle/java/.vscode/settings.json +++ b/vscode-wpilib/resources/gradle/java/.vscode/settings.json @@ -27,6 +27,18 @@ ], "java.test.defaultConfig": "WPIlibUnitTests", "java.import.gradle.annotationProcessing.enabled": false, + "java.completion.favoriteStaticMembers": [ + "org.junit.Assert.*", + "org.junit.Assume.*", + "org.junit.jupiter.api.Assertions.*", + "org.junit.jupiter.api.Assumptions.*", + "org.junit.jupiter.api.DynamicContainer.*", + "org.junit.jupiter.api.DynamicTest.*", + "org.mockito.Mockito.*", + "org.mockito.ArgumentMatchers.*", + "org.mockito.Answers.*", + "edu.wpi.first.units.Units.*" + ], "java.completion.filteredTypes": [ "java.awt.*", "com.sun.*", diff --git a/vscode-wpilib/resources/gradle/javadt/.vscode/settings.json b/vscode-wpilib/resources/gradle/javadt/.vscode/settings.json index 044d0a7e..7da7cb34 100644 --- a/vscode-wpilib/resources/gradle/javadt/.vscode/settings.json +++ b/vscode-wpilib/resources/gradle/javadt/.vscode/settings.json @@ -26,5 +26,17 @@ }, ], "java.test.defaultConfig": "WPIlibUnitTests", - "java.import.gradle.annotationProcessing.enabled": false + "java.import.gradle.annotationProcessing.enabled": false, + "java.completion.favoriteStaticMembers": [ + "org.junit.Assert.*", + "org.junit.Assume.*", + "org.junit.jupiter.api.Assertions.*", + "org.junit.jupiter.api.Assumptions.*", + "org.junit.jupiter.api.DynamicContainer.*", + "org.junit.jupiter.api.DynamicTest.*", + "org.mockito.Mockito.*", + "org.mockito.ArgumentMatchers.*", + "org.mockito.Answers.*", + "edu.wpi.first.units.Units.*" + ] } diff --git a/vscode-wpilib/resources/gradle/javaromi/.vscode/settings.json b/vscode-wpilib/resources/gradle/javaromi/.vscode/settings.json index 07a92372..cb3624e1 100644 --- a/vscode-wpilib/resources/gradle/javaromi/.vscode/settings.json +++ b/vscode-wpilib/resources/gradle/javaromi/.vscode/settings.json @@ -28,6 +28,18 @@ ], "java.test.defaultConfig": "WPIlibUnitTests", "java.import.gradle.annotationProcessing.enabled": false, + "java.completion.favoriteStaticMembers": [ + "org.junit.Assert.*", + "org.junit.Assume.*", + "org.junit.jupiter.api.Assertions.*", + "org.junit.jupiter.api.Assumptions.*", + "org.junit.jupiter.api.DynamicContainer.*", + "org.junit.jupiter.api.DynamicTest.*", + "org.mockito.Mockito.*", + "org.mockito.ArgumentMatchers.*", + "org.mockito.Answers.*", + "edu.wpi.first.units.Units.*" + ], "java.completion.filteredTypes": [ "java.awt.*", "com.sun.*", diff --git a/vscode-wpilib/resources/gradle/javaxrp/.vscode/settings.json b/vscode-wpilib/resources/gradle/javaxrp/.vscode/settings.json index 07a92372..cb3624e1 100644 --- a/vscode-wpilib/resources/gradle/javaxrp/.vscode/settings.json +++ b/vscode-wpilib/resources/gradle/javaxrp/.vscode/settings.json @@ -28,6 +28,18 @@ ], "java.test.defaultConfig": "WPIlibUnitTests", "java.import.gradle.annotationProcessing.enabled": false, + "java.completion.favoriteStaticMembers": [ + "org.junit.Assert.*", + "org.junit.Assume.*", + "org.junit.jupiter.api.Assertions.*", + "org.junit.jupiter.api.Assumptions.*", + "org.junit.jupiter.api.DynamicContainer.*", + "org.junit.jupiter.api.DynamicTest.*", + "org.mockito.Mockito.*", + "org.mockito.ArgumentMatchers.*", + "org.mockito.Answers.*", + "edu.wpi.first.units.Units.*" + ], "java.completion.filteredTypes": [ "java.awt.*", "com.sun.*",