Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 9e29839

Browse files
committed
resolved command not showing up
1 parent db08053 commit 9e29839

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class ScriptRunnerPlugin extends Plugin {
2020

2121
// Dynamically add commands and ribbon icons for each script
2222
this.addScriptCommandsAndIcons();
23+
this.refreshCommandsAndIcons();
2324
}
2425

2526
onunload() {

src/managers/scriptManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class ScriptManager {
5656
let scriptStartTime = Date.now();
5757
if (scriptConfig.runDirectory) {
5858
basePath = path.join(basePath, scriptConfig.runDirectory);
59-
}
59+
}
6060
process.chdir(basePath);
6161
console.log(`Running script: ${cmd} from ${basePath}`);
6262
exec(cmd, (error, stdout, stderr) => {

0 commit comments

Comments
 (0)