Skip to content

Commit

Permalink
extensions: Fix language detection (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego-Ivan authored Jul 12, 2024
1 parent 669d808 commit 2c0a46a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/Extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ export function Extensions({ window }) {
window.add_action(action_extensions);
}

let rust_enabled = false;
let rust_enabled = null;
export function isRustEnabled() {
rust_enabled ??=
Gio.File.new_for_path("/usr/lib/sdk/rust-stable").query_exists(null) &&
Gio.File.new_for_path(`/usr/lib/sdk/${llvm}`).query_exists(null);
return rust_enabled;
}

let vala_enabled = false;
let vala_enabled = null;
export function isValaEnabled() {
vala_enabled ??=
Gio.File.new_for_path("/usr/lib/sdk/vala").query_exists(null);
return vala_enabled;
}

let typescript_enabled = false;
let typescript_enabled = null;
export function isTypeScriptEnabled() {
typescript_enabled ??=
Gio.File.new_for_path("/usr/lib/sdk/typescript").query_exists(null) &&
Expand Down

0 comments on commit 2c0a46a

Please sign in to comment.