promise: make sure as() returns promise like and fix errors

This commit is contained in:
Benjamin Pasero
2017-11-08 12:33:39 +01:00
parent 94e9b107fb
commit 4ec5250582
38 changed files with 66 additions and 58 deletions

View File

@@ -66,12 +66,12 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
}
this.debugService.getConfigurationManager().registerDebugConfigurationProvider(handle, provider);
return TPromise.as<void>(undefined);
return TPromise.wrap<void>(undefined);
}
public $unregisterDebugConfigurationProvider(handle: number): TPromise<any> {
this.debugService.getConfigurationManager().unregisterDebugConfigurationProvider(handle);
return TPromise.as<void>(undefined);
return TPromise.wrap<void>(undefined);
}
public $startDebugging(folderUri: uri | undefined, nameOrConfiguration: string | IConfig): TPromise<boolean> {
@@ -100,6 +100,6 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
public $appendDebugConsole(value: string): TPromise<any> {
// Use warning as severity to get the orange color for messages coming from the debug extension
this.debugService.logToRepl(value, severity.Warning);
return TPromise.as<void>(undefined);
return TPromise.wrap<void>(undefined);
}
}