From 469e3155b60c3875d6f982f56939215aa622c97c Mon Sep 17 00:00:00 2001 From: Jan Dolejsi Date: Thu, 9 Nov 2023 11:04:05 +0100 Subject: [PATCH 1/2] reverting the manifest parsing; it is an object, not list afterall! --- src/planning/PackagedPlannerSelector.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/planning/PackagedPlannerSelector.ts b/src/planning/PackagedPlannerSelector.ts index 52b7d24..209ee5a 100644 --- a/src/planning/PackagedPlannerSelector.ts +++ b/src/planning/PackagedPlannerSelector.ts @@ -25,9 +25,13 @@ export class PackagedPlannerSelector extends PackagedPlanners { async select(): Promise { const manifests = await this.getManifests(); const plannerItems: PackageQuickPickItem[] = []; - for (const manifest of manifests) { - const item = this.toManifestQuickPickItem(manifest); - plannerItems.push(item); + for (const key in manifests) { + if (Object.prototype.hasOwnProperty.call(manifests, key)) { + const manifest = manifests[key]; + manifest.package_name = key; + const item = this.toManifestQuickPickItem(manifest); + plannerItems.push(item); + } } const selectedOption = await window.showQuickPick(plannerItems, { matchOnDescription: true, matchOnDetail: true, placeHolder: 'Select a planner...' From 0217825b4d31f33466230258d12149056268ef4c Mon Sep 17 00:00:00 2001 From: Jan Dolejsi Date: Thu, 9 Nov 2023 11:13:05 +0100 Subject: [PATCH 2/2] v2.27.1 --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a3f491..149d081 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # PDDL support - What's new? +## 2.27.1 + +Fixed parsing of the planning-as-a-service (and planutils) planner manifests. + ## 2.27.0 ### Secured communication with planning.domains server diff --git a/package-lock.json b/package-lock.json index 7307100..6e47d3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pddl", - "version": "2.27.0", + "version": "2.27.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pddl", - "version": "2.27.0", + "version": "2.27.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 9a66df4..edd0e62 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Planning Domain Description Language support", "author": "Jan Dolejsi", "license": "MIT", - "version": "2.27.0", + "version": "2.27.1", "publisher": "jan-dolejsi", "engines": { "vscode": "^1.69.0",