Skip to content

Commit f739057

Browse files
committed
feat: bug fixes and improvements
1 parent cb5657a commit f739057

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codify-plugin-lib",
3-
"version": "1.0.167",
3+
"version": "1.0.169",
44
"description": "Library plugin library",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",

src/plugin/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class Plugin {
113113
}
114114

115115
async import(data: ImportRequestData): Promise<ImportResponseData> {
116-
const { core, parameters } = data;
116+
const { core, parameters, autoSearchAll } = data;
117117

118118
if (!this.resourceControllers.has(core.type)) {
119119
throw new Error(`Cannot get info for resource ${core.type}, resource doesn't exist`);
@@ -122,7 +122,7 @@ export class Plugin {
122122
const result = await ptyLocalStorage.run(this.planPty, () =>
123123
this.resourceControllers
124124
.get(core.type!)
125-
?.import(core, parameters, data.autoSearchAll)
125+
?.import(core, parameters, autoSearchAll)
126126
)
127127

128128
return {

src/pty/background-pty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class BackgroundPty implements IPty {
101101
}
102102
});
103103

104-
console.log(`Running command ${cmd}`)
104+
console.log(`Running command ${cmd}${options?.cwd ? ` (cwd: ${options.cwd})` : ''}`)
105105
this.basePty.write(`${command}\r`);
106106

107107
}));

src/resource/resource-controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ export class ResourceController<T extends StringIndexedObject> {
279279
}
280280

281281
const parametersToImport = await this.settings.allowMultiple.findAllParameters?.();
282-
const results = await Promise.all(parametersToImport.map((p) => this.import(core, p)));
282+
const results = await Promise.all(parametersToImport.map((p) =>
283+
this.import(core, p).catch(() => null))
284+
);
283285
return results.filter(Boolean).flat() as ResourceJson[];
284286
}
285287

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import os from 'node:os';
33
import path from 'node:path';
44

55
export const VerbosityLevel = new class {
6-
private level = 0;
6+
level = 0;
77

88
get() {
99
return this.level;

0 commit comments

Comments
 (0)