Skip to content

Commit 3f7fb5f

Browse files
committed
Fix galaxy_root parameter validation
Check for the existence of <galaxy_root>/lib/galaxy instead of relaying in how the root directory is named.
1 parent 6bd7c49 commit 3f7fb5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/configuration/galaxyToolWorkspaceConfiguration.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { join } from "path";
12
import { lookpath } from "lookpath"
23
import { workspace, WorkspaceConfiguration } from 'vscode';
34

@@ -66,7 +67,7 @@ class GalaxyToolsPlanemoConfiguration implements IPlanemoConfiguration {
6667

6768
private async isValidGalaxyRoot(): Promise<boolean> {
6869
const galaxyRoot = this.galaxyRoot();
69-
if (galaxyRoot === null || !galaxyRoot.endsWith("galaxy") || !await exists(galaxyRoot)) {
70+
if (galaxyRoot === null || !await exists(join(galaxyRoot, "lib", "galaxy"))) {
7071
return false;
7172
}
7273
return true;

0 commit comments

Comments
 (0)