Skip to content

Commit f6a5aa9

Browse files
fix the error 'compareVersions is not a function' (#1307)
1 parent 4a38a28 commit f6a5aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ async function canDelegateToJavaTestRunner(uri: vscode.Uri): Promise<boolean> {
312312
function launchTesting(uri: vscode.Uri, noDebug: boolean, progressReporter: IProgressReporter) {
313313
const command: string = noDebug ? "java.test.editor.run" : "java.test.editor.debug";
314314
vscode.commands.executeCommand(command, uri, progressReporter);
315-
if (compareVersions(getTestExtensionVersion(), "0.26.1") <= 0) {
315+
if (compareVersions.compare(getTestExtensionVersion(), "0.26.1", "<=")) {
316316
throw new utility.OperationCancelledError("");
317317
}
318318
}

0 commit comments

Comments
 (0)