|
|
@ -41,13 +41,13 @@ class FoundryPluginClient extends ElectronBasePluginRemixdClient { |
|
|
|
async onActivation(): Promise<void> { |
|
|
|
async onActivation(): Promise<void> { |
|
|
|
console.log('Foundry plugin activated') |
|
|
|
console.log('Foundry plugin activated') |
|
|
|
this.call('terminal', 'log', { type: 'log', value: 'Foundry plugin activated' }) |
|
|
|
this.call('terminal', 'log', { type: 'log', value: 'Foundry plugin activated' }) |
|
|
|
this.startListening() |
|
|
|
|
|
|
|
this.on('fs' as any, 'workingDirChanged', async (path: string) => { |
|
|
|
this.on('fs' as any, 'workingDirChanged', async (path: string) => { |
|
|
|
console.log('workingDirChanged foundry', path) |
|
|
|
console.log('workingDirChanged foundry', path) |
|
|
|
this.currentSharedFolder = path |
|
|
|
this.currentSharedFolder = path |
|
|
|
this.startListening() |
|
|
|
this.startListening() |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.currentSharedFolder = await this.call('fs' as any, 'getWorkingDir') |
|
|
|
this.currentSharedFolder = await this.call('fs' as any, 'getWorkingDir') |
|
|
|
|
|
|
|
if(this.currentSharedFolder) this.startListening() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
startListening() { |
|
|
|
startListening() { |
|
|
|