|
|
@ -51,11 +51,11 @@ export class CompileAndRun extends Plugin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async runScript (fileName, clearAllInstances) { |
|
|
|
async runScript (fileName, clearAllInstances) { |
|
|
|
await this.call('terminal', 'log', `running ${fileName} ...`) |
|
|
|
await this.call('terminal', 'log', { value: `running ${fileName} ...`, type: 'info' }) |
|
|
|
try { |
|
|
|
try { |
|
|
|
const exists = await this.call('fileManager', 'exists', fileName) |
|
|
|
const exists = await this.call('fileManager', 'exists', fileName) |
|
|
|
if (!exists) { |
|
|
|
if (!exists) { |
|
|
|
await this.call('terminal', 'log', `${fileName} does not exist.`) |
|
|
|
await this.call('terminal', 'log', { value: `${fileName} does not exist.`, type: 'info' } ) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
const content = await this.call('fileManager', 'readFile', fileName) |
|
|
|
const content = await this.call('fileManager', 'readFile', fileName) |
|
|
|