From 27d69858a129745913292abfb162f4511fccc1dc Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 29 May 2018 22:04:24 -0400 Subject: [PATCH] Use workspaceFolders Over rootPath Issue: #166 --- src/xquery-execution/commands/executeXQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xquery-execution/commands/executeXQuery.ts b/src/xquery-execution/commands/executeXQuery.ts index 90c0525..a74ed0e 100644 --- a/src/xquery-execution/commands/executeXQuery.ts +++ b/src/xquery-execution/commands/executeXQuery.ts @@ -101,7 +101,7 @@ export async function executeXQuery(editor: TextEditor, edit: TextEditorEdit): P return value .replace("$(script)", editor.document.uri.fsPath) .replace("$(input)", inputFile.fsPath) - .replace("$(project)", workspace.rootPath); + .replace("$(project)", (workspace.workspaceFolders) ? workspace.workspaceFolders[0].uri.fsPath : ""); }); try {