Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async loadCompletions (): Promise {
const sdk = project.sdk()[0];
this.completions = await completion.loadCompletions(sdk, completion.CompletionsFormat.v2);
}
}
private async loadCompletions (): Promise {
const sdk = project.sdk()[0];
this.completions = await completion.loadCompletions(sdk, completion.CompletionsFormat.v2);
}
}
public async loadCompletions (): Promise {
const sdk = project.sdk()[0];
this.completions = await completion.loadCompletions(sdk, completion.CompletionsFormat.v2);
}
}
async loadCompletions(sdkVersion) {
if (!sdkVersion) {
sdkVersion = Project.sdk()[0];
}
if (this.completions) {
return this.completions;
}
this.completions = await completion.loadCompletions(sdkVersion, completion.CompletionsFormat.v2);
return this.completions;
},
};