Skip to content

Commit 5a1e983

Browse files
committed
Replace CommandBase and SubsystemBase
Works with wpilibsuite/allwpilib#5392
1 parent c0015d3 commit 5a1e983

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

vscode-wpilib/resources/cpp_replacements.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
{ "from": "wpi[\\\\/]numbers", "to": "numbers" },
4747
{ "from": "wpi::numbers::", "to": "std::numbers::" },
4848
{ "from": "wpi[\\\\/]span", "to": "span" },
49-
{ "from": "wpi::span<", "to": "std::span<" }
49+
{ "from": "wpi::span<", "to": "std::span<" },
50+
{ "from": "frc::CommandBase", "to": "frc::Command" },
51+
{ "from": "frc::SubsystemBase", "to": "frc::Subsystem" }
52+
{ "from": "frc2[\\\\/]command[\\\\/]CommandBase[.]h", "to": "frc2/command/Command.h" },
53+
{ "from": "frc2[\\\\/]command[\\\\/]SubsystemBase[.]h", "to": "frc2/command/Subsystem.h" }
5054
]
5155
}
5256
]

vscode-wpilib/resources/java_replacements.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@
138138
{ "from": "LiveWindow[.]getInstance[(][)][.]", "to": "LiveWindow." },
139139
{ "from": "Preferences[.]getInstance[(][)][.]", "to": "Preferences." },
140140
{ "from": "SendableRegistry[.]getInstance[(][)][.]", "to": "SendableRegistry." },
141-
{ "from": "[.]get(\\w*)[(](?:GenericHID[.])?Hand[.]k(\\w*)[)]", "to": ".get$2$1()" }
141+
{ "from": "[.]get(\\w*)[(](?:GenericHID[.])?Hand[.]k(\\w*)[)]", "to": ".get$2$1()" },
142+
{ "from": "CommandBase", "to": "Command" },
143+
{ "from": "SubsystemBase", "to": "Subsystem" }
142144
]
143145
}
144146
]

0 commit comments

Comments
 (0)