Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async init() {
// tell the language server to use the built-in loggers
// from oclif
Debug.SetLoggers({
info: this.log,
warning: this.warn,
error: console.error
});
}
async init() {
const { flags, args } = this.parse(this.constructor as any);
this.ctx = { flags, args } as any;
// tell the language server to use the built-in loggers
// from oclif
Debug.SetLoggers({
info: this.log,
warning: this.warn,
error: console.error
});
const config = await this.createConfig(flags);
if (!config) return;
this.createService(config, flags);
this.ctx.config = config;
// make sure this the first item in the task list
// XXX Somehow this task gets pushed onto the stack multiple times sometimes
this.tasks.push({
title: "Loading Apollo Project",
task: async ctx => {