Use workspaceFolders Over rootPath

Issue: #166
This commit is contained in:
Josh Johnson 2018-05-29 22:04:24 -04:00
parent d0fd689370
commit 27d69858a1

View File

@ -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 {