in src/controller/directoryController.ts [24:39]
async checkUri(uri: vscode.Uri, strict?: boolean) {
const { guid, version } = await this.splitUri(uri);
if (!(await this.inRoot(uri))) {
vscode.window.showErrorMessage(
"(Assay) File is not in the Addons root folder."
);
throw new Error("(Assay) File is not in the root folder");
}
if (strict && (!guid || !version)) {
vscode.window.showErrorMessage(
"Not a valid path. Ensure you have the workspace open to the add-ons root folder."
);
throw new Error("No guid or version found");
}
}