Skip to content

Commit

Permalink
Auto enable/disable java should work when no folder is opened in work…
Browse files Browse the repository at this point in the history
…space. (apache#4991)
  • Loading branch information
dbalek authored and Christian Lenz committed Dec 15, 2022
1 parent c902f96 commit 35d2507
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions java/java.lsp.server/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
function checkConflict(): void {
let conf = workspace.getConfiguration();
if (conf.get("netbeans.conflict.check") && conf.get("netbeans.javaSupport.enabled")) {
const id = 'redhat.java';
let e = vscode.extensions.getExtension(id);
if (e && workspace.name) {
if (vscode.extensions.getExtension('redhat.java')) {
if (vscode.extensions.getExtension('oracle-labs-graalvm.gcn')) {
conf.update("netbeans.javaSupport.enabled", false, true);
} else {
Expand Down

0 comments on commit 35d2507

Please sign in to comment.