debt remove TPromise from extHost-files #53526

This commit is contained in:
Johannes Rieken
2018-10-19 09:49:05 +02:00
parent 66b397316d
commit 45f4904378
15 changed files with 152 additions and 175 deletions

View File

@@ -6,7 +6,6 @@
import * as vscode from 'vscode';
import { MainContext, IMainContext, ExtHostUrlsShape, MainThreadUrlsShape } from './extHost.protocol';
import { URI, UriComponents } from 'vs/base/common/uri';
import { TPromise } from 'vs/base/common/winjs.base';
import { toDisposable } from 'vs/base/common/lifecycle';
import { onUnexpectedError } from 'vs/base/common/errors';
@@ -45,7 +44,7 @@ export class ExtHostUrls implements ExtHostUrlsShape {
const handler = this.handlers.get(handle);
if (!handler) {
return TPromise.as(null);
return Promise.resolve(null);
}
try {
handler.handleUri(URI.revive(uri));
@@ -53,6 +52,6 @@ export class ExtHostUrls implements ExtHostUrlsShape {
onUnexpectedError(err);
}
return TPromise.as(null);
return Promise.resolve(null);
}
}