Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.hostedInstanceProcess.stderr.addListener('data', data => {
this.hostedPluginSupport.sendLog({ data: data.toString(), type: LogType.Error });
});
runWatchCompilation(uri: string): Promise {
const pluginRootPath = this.getFsPath(uri);
if (this.watchCompilationRegistry.has(pluginRootPath)) {
throw new Error('Watcher is already running in ' + pluginRootPath);
}
if (!this.checkWatchScript(pluginRootPath)) {
this.hostedPluginSupport.sendLog({
data: 'Plugin in ' + uri + ' doesn\'t have watch script',
type: LogType.Error
});
throw new Error('Watch script doesn\'t exist in ' + pluginRootPath + 'package.json');
}
return this.runWatchScript(pluginRootPath);
}