提交 ac0b37b2 编写于 作者: I isidor

TPromise.as => Promise.resolve

#64597
上级 ec931c10
......@@ -331,7 +331,7 @@ export class ExplorerView extends TreeViewsViewletPanel implements IExplorerView
if (visible) {
// If a refresh was requested and we are now visible, run it
let refreshPromise: Thenable<void> = TPromise.as(null);
let refreshPromise: Thenable<void> = Promise.resolve(null);
if (this.shouldRefresh) {
refreshPromise = this.doRefresh();
this.shouldRefresh = false; // Reset flag
......
......@@ -146,7 +146,7 @@ export class ConfigurationResolverService extends AbstractVariableResolverServic
*/
private resolveWithCommands(configuration: any, variableToCommandMap: IStringDictionary<string>): TPromise<IStringDictionary<string>> {
if (!configuration) {
return TPromise.as(undefined);
return Promise.resolve(undefined);
}
// use an array to preserve order of first appearance
......@@ -332,4 +332,4 @@ export class ConfigurationResolverService extends AbstractVariableResolverServic
return inputs;
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册