debt - Thenable -> Promise

This commit is contained in:
Johannes Rieken
2018-12-13 11:30:26 +01:00
parent 29dd4e77de
commit 653280d133
411 changed files with 2370 additions and 2366 deletions

View File

@@ -62,7 +62,7 @@ export function getIdAndVersion(id: string): [string, string] {
}
type Task = { (): Thenable<void> };
type Task = { (): Promise<void> };
class Main {
@@ -205,7 +205,7 @@ class Main {
}
}
private uninstallExtension(extensions: string[]): Thenable<any> {
private uninstallExtension(extensions: string[]): Promise<any> {
async function getExtensionId(extensionDescription: string): Promise<string> {
if (!/\.vsix$/i.test(extensionDescription)) {
return extensionDescription;