Skip to content

Commit 5184522

Browse files
authored
Merge pull request #158 from galaxyproject/fix_galaxy_root_restriction
Fix `planemo.galaxyRoot` parameter validation in Config
2 parents 6bd7c49 + 3f7fb5f commit 5184522

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)