Skip to content

Commit

Permalink
Replace CommandBase and SubsystemBase (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Aug 10, 2023
1 parent 6655b12 commit acc17ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion vscode-wpilib/resources/cpp_replacements.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
{ "from": "wpi[\\\\/]numbers", "to": "numbers" },
{ "from": "wpi::numbers::", "to": "std::numbers::" },
{ "from": "wpi[\\\\/]span", "to": "span" },
{ "from": "wpi::span<", "to": "std::span<" }
{ "from": "wpi::span<", "to": "std::span<" },
{ "from": "frc::CommandBase", "to": "frc::Command" },
{ "from": "frc::SubsystemBase", "to": "frc::Subsystem" }
{ "from": "frc2[\\\\/]command[\\\\/]CommandBase[.]h", "to": "frc2/command/Command.h" },
{ "from": "frc2[\\\\/]command[\\\\/]SubsystemBase[.]h", "to": "frc2/command/Subsystem.h" }
]
}
]
4 changes: 3 additions & 1 deletion vscode-wpilib/resources/java_replacements.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@
{ "from": "LiveWindow[.]getInstance[(][)][.]", "to": "LiveWindow." },
{ "from": "Preferences[.]getInstance[(][)][.]", "to": "Preferences." },
{ "from": "SendableRegistry[.]getInstance[(][)][.]", "to": "SendableRegistry." },
{ "from": "[.]get(\\w*)[(](?:GenericHID[.])?Hand[.]k(\\w*)[)]", "to": ".get$2$1()" }
{ "from": "[.]get(\\w*)[(](?:GenericHID[.])?Hand[.]k(\\w*)[)]", "to": ".get$2$1()" },
{ "from": "CommandBase", "to": "Command" },
{ "from": "SubsystemBase", "to": "Subsystem" }
]
}
]

0 comments on commit acc17ec

Please sign in to comment.