Skip to content

Commit a2b6f6a

Browse files
authored
Initial Importer update for 2027 (#764)
Delete all existing regexes for import Update all text to importing 2025 projects
1 parent 5d4e61b commit a2b6f6a

11 files changed

Lines changed: 50 additions & 247 deletions

vscode-wpilib/locale/zh-cn/package.i18n.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wpilibcore.help.title: 打开 WPILib 帮助
2121
wpilibcore.openCommandPalette.title: 打开 WPILib 的命令面板
2222
wpilibcore.refreshCppProperties.title: 更新 Gradle C++ 属性
2323
wpilibcore.selectCppToolchain.title: 选择当前的 C++ 工具链
24-
wpilibcore.importGradle2020Project.title: 将 Gradle 2020-2024 项目迁移到 VSCode
24+
wpilibcore.importGradle2025Project.title: 将 Gradle 2025 项目迁移到 VSCode
2525
wpilibcore.createNewProject.title: 创建一个新项目
2626
wpilibcore.manageVendorLibs.title: 管理外部供应商库
2727
wpilibcore.setJavaHome.title: 设置 Java 环境

vscode-wpilib/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"onCommand:wpilibcore.refreshCppProperties",
4343
"onCommand:wpilibcore.selectCppToolchain",
4444
"onCommand:wpilibcore.selectCppBinaryTypes",
45-
"onCommand:wpilibcore.importGradle2020Project",
45+
"onCommand:wpilibcore.importGradle2025Project",
4646
"onCommand:wpilibcore.createNewProject",
4747
"onCommand:wpilibcore.manageVendorLibs",
4848
"onCommand:wpilibcore.setJavaHome",
@@ -341,8 +341,8 @@
341341
"enablement": "isWorkspaceTrusted"
342342
},
343343
{
344-
"command": "wpilibcore.importGradle2020Project",
345-
"title": "%wpilibcore.importGradle2020Project.title%",
344+
"command": "wpilibcore.importGradle2025Project",
345+
"title": "%wpilibcore.importGradle2025Project.title%",
346346
"category": "WPILib"
347347
},
348348
{

vscode-wpilib/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"wpilibcore.openCommandPalette.title": "Open WPILib Command Palette",
2525
"wpilibcore.refreshCppProperties.title": "Refresh C++ Intellisense",
2626
"wpilibcore.selectCppToolchain.title": "Select Current C++ Toolchain",
27-
"wpilibcore.importGradle2020Project.title": "Import a WPILib 2020-2024 Gradle project",
27+
"wpilibcore.importGradle2025Project.title": "Import a WPILib 2025 Gradle project",
2828
"wpilibcore.createNewProject.title": "Create a new project",
2929
"wpilibcore.manageVendorLibs.title": "Manage Vendor Libraries",
3030
"wpilibcore.setJavaHome.title": "Set VS Code Java Home to FRC Home",

vscode-wpilib/resources/cpp_replacements.json

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,6 @@
33
"fileMatcher": "**/*{.cpp,.c,.cc,.h,.hh,.hpp}",
44
"flags": "gi",
55
"replacements": [
6-
{ "from": "frc[\\\\/]DMC60[.]h", "to": "frc/motorcontrol/DMC60.h" },
7-
{ "from": "frc[\\\\/]Jaguar[.]h", "to": "frc/motorcontrol/Jaguar.h" },
8-
{ "from": "frc[\\\\/]NidecBrushless[.]h", "to": "frc/motorcontrol/NidecBrushless.h" },
9-
{ "from": "frc[\\\\/]PWMSparkMax[.]h", "to": "frc/motorcontrol/PWMSparkMax.h" },
10-
{ "from": "frc[\\\\/]PWMSpeedController[.]h", "to": "frc/motorcontrol/PWMMotorController.h" },
11-
{ "from": "frc[\\\\/]PWMTalonFX[.]h", "to": "frc/motorcontrol/PWMTalonFX.h" },
12-
{ "from": "frc[\\\\/]PWMTalonSRX[.]h", "to": "frc/motorcontrol/PWMTalonSRX.h" },
13-
{ "from": "frc[\\\\/]PWMVenom[.]h", "to": "frc/motorcontrol/PWMVenom.h" },
14-
{ "from": "frc[\\\\/]PWMVictorSPX[.]h", "to": "frc/motorcontrol/PWMVictorSPX.h" },
15-
{ "from": "frc[\\\\/]PowerDistributionPanel[.]h", "to": "frc/PowerDistribution.h" },
16-
{ "from": "frc[\\\\/]SD540[.]h", "to": "frc/motorcontrol/SD540.h" },
17-
{ "from": "frc[\\\\/]SlewRateLimiter[.]h", "to": "frc/SlewRateLimiter.h" },
18-
{ "from": "frc[\\\\/]Spark[.]h", "to": "frc/motorcontrol/Spark.h" },
19-
{ "from": "frc[\\\\/]Talon[.]h", "to": "frc/motorcontrol/Talon.h" },
20-
{ "from": "frc[\\\\/]Victor[.]h", "to": "frc/motorcontrol/Victor.h" },
21-
{ "from": "frc[\\\\/]VictorSP[.]h", "to": "frc/motorcontrol/VictorSP.h" },
22-
{ "from": "frc[\\\\/]controller[\\\\/]HolonomicDriveController[.]h", "to": "frc/controller/HolonomicDriveController.h" },
23-
{ "from": "frc[\\\\/]controller[\\\\/]PIDController[.]h", "to": "frc/controller/PIDController.h" },
24-
{ "from": "frc[\\\\/]controller[\\\\/]ProfiledPIDController[.]h", "to": "frc/controller/ProfiledPIDController.h" },
25-
{ "from": "frc[\\\\/]controller[\\\\/]RamseteController[.]h", "to": "frc/controller/RamseteController.h" },
26-
{ "from": "frc[\\\\/]smartdashboard[\\\\/]Sendable[.]h", "to": "wpi/sendable/Sendable.h" },
27-
{ "from": "frc[\\\\/]smartdashboard[\\\\/]SendableBuilder[.]h", "to": "wpi/sendable/SendableBuilder.h" },
28-
{ "from": "frc[\\\\/]smartdashboard[\\\\/]SendableHelper[.]h", "to": "wpi/sendable/SendableHelper.h" },
29-
{ "from": "frc[\\\\/]smartdashboard[\\\\/]SendableRegistry[.]h", "to": "wpi/sendable/SendableRegistry.h" },
30-
{ "from": "frc[\\\\/]LinearFilter[.]h", "to": "frc/filter/LinearFilter.h" },
31-
{ "from": "frc[\\\\/]MedianFilter[.]h", "to": "frc/filter/MedianFilter.h" },
32-
{ "from": "frc[\\\\/]SlewRateLimiter[.]h", "to": "frc/filter/SlewRateLimiter.h" },
33-
{ "from": "frc::Sendable\\b", "to": "wpi::Sendable" },
34-
{ "from": "frc::SendableBuilder", "to": "wpi::SendableBuilder" },
35-
{ "from": "frc::SendableHelper", "to": "wpi::SendableHelper" },
36-
{ "from": "frc::SendableRegistry", "to": "wpi::SendableRegistry" },
37-
{ "from": "frc::CameraServer::GetInstance[(][)]->", "to": "frc::CameraServer::" },
38-
{ "from": "frc::DriverStation::GetInstance[(][)][.]", "to": "frc::DriverStation::" },
39-
{ "from": "frc::LiveWindow::GetInstance[(][)]->", "to": "frc::LiveWindow::" },
40-
{ "from": "frc::Preferences::GetInstance[(][)]->", "to": "frc::Preferences::" },
41-
{ "from": "frc::SendableRegistry::GetInstance[(][)][.]", "to": "wpi::SendableRegistry::" },
42-
{ "from": "wpi::SendableRegistry::GetInstance[(][)][.]", "to": "wpi::SendableRegistry::" },
43-
{ "from": "wpi[\\\\/]math", "to": "wpi/numbers" },
44-
{ "from": "wpi::math::", "to": "wpi::numbers::" },
45-
{ "from": "([.>])Get(\\w*)[(]frc::GenericHID::JoystickHand::k(\\w*)Hand[)]", "to": "$1Get$3$2()" },
46-
{ "from": "wpi[\\\\/]numbers", "to": "numbers" },
47-
{ "from": "wpi::numbers::", "to": "std::numbers::" },
48-
{ "from": "wpi[\\\\/]span", "to": "span" },
49-
{ "from": "wpi::span<", "to": "std::span<" },
50-
{ "from": "frc2::CommandBase", "to": "frc2::Command" },
51-
{ "from": "frc2[\\\\/]command[\\\\/]CommandBase[.]h", "to": "frc2/command/Command.h" }
526
]
537
}
548
]

0 commit comments

Comments
 (0)