Skip to content

Commit

Permalink
fix: Remove vscode-java-debug activation check (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
CsCherrYY authored Dec 24, 2021
1 parent f00c98b commit 02ef4b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions extension/src/tasks/taskUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
getJavaDebuggerExtension,
JAVA_LANGUAGE_EXTENSION_ID,
JAVA_DEBUGGER_EXTENSION_ID,
isJavaDebuggerExtensionActivated,
isJavaLanguageSupportExtensionActivated,
} from "../util/compat";
import { getTaskArgs } from "../util/input";
Expand Down Expand Up @@ -316,9 +315,6 @@ export async function runTask(
]);
}
return;
} else if (!isJavaDebuggerExtensionActivated()) {
await vscode.window.showErrorMessage("The Java Debugger extension is not activated.");
return;
} else if (!isJavaLanguageSupportExtensionActivated()) {
await vscode.window.showErrorMessage("The Java Language Support extension is not activated.");
return;
Expand Down
5 changes: 0 additions & 5 deletions extension/src/util/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export function isJavaLanguageSupportExtensionActivated(): boolean {
return javaExt?.isActive || false;
}

export function isJavaDebuggerExtensionActivated(): boolean {
const javaExt: vscode.Extension<unknown> | undefined = getJavaDebuggerExtension();
return javaExt?.isActive || false;
}

export function getJavaLanguageSupportExtension(): vscode.Extension<unknown> | undefined {
return vscode.extensions.getExtension(JAVA_LANGUAGE_EXTENSION_ID);
}
Expand Down

0 comments on commit 02ef4b4

Please sign in to comment.