Skip to content

Commit

Permalink
Importer: Update for Java Units changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Nov 8, 2024
1 parent 3b7f0c5 commit 6fc5209
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vscode-wpilib/resources/java_replacements.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,15 @@
{ "from": "Preferences[.]getInstance[(][)][.]", "to": "Preferences." },
{ "from": "SendableRegistry[.]getInstance[(][)][.]", "to": "SendableRegistry." },
{ "from": "[.]get(\\w*)[(](?:GenericHID[.])?Hand[.]k(\\w*)[)]", "to": ".get$2$1()" },
{ "from": "CommandBase", "to": "Command" }
{ "from": "CommandBase", "to": "Command" },
{ "from": "import edu[.]wpi[.]first[.]units[.]measure[.]Measure;", "to": "" },
{ "from": "edu[.]wpi[.]first[.]units[.](.*);", "to": "edu.wpi.first.units.measure.$1;" },
{ "from": "edu[.]wpi[.]first[.]units[.]measure[.]Units[.](\\w*);", "to": "edu.wpi.first.units.Units.$1;" },
{ "from": "Measure<(\\w*)>", "to": "$1" },
{ "from": "Measure<Velocity<Distance>>", "to": "LinearVelocity" },
{ "from": "Measure<Velocity<Angle>>", "to": "AngularVelocity" },
{ "from": "Measure<Velocity<Velocity<Distance>>>", "to": "LinearAcceleration" },
{ "from": "Measure<Velocity<Velocity<Angle>>>", "to": "AngularAcceleration" }
]
}
]

0 comments on commit 6fc5209

Please sign in to comment.