mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
promise: make sure as() returns promise like and fix errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user