[2021.2 compat] Use setMacro to null instead of removeMacro
PathMacros#removeMacro is [removed in 2021.2](https://github.com/JetBrains/intellij-community/commit/aaf78c519800c001e854003f70fc72366d2cd10e#diff-29aa14ace84c2962fef7ff9fd08da2839df24d184a38097aa630945b8cd1a7f9), this CL uses PathMacros#setMacro to null in place of removeMacro to support 2021.2 in addition to older verisons.
@@ -50,7 +50,7 @@ public class RunConfigurationSerializer {
}
private static void clearWorkspacePathVariable() {
- PathMacros.getInstance().removeMacro(WORKSPACE_ROOT_VARIABLE_NAME);
+ PathMacros.getInstance().setMacro(WORKSPACE_ROOT_VARIABLE_NAME, null);
}
private static synchronized void runWithPathVariableSet(Project project, Runnable runnable) {
