debt - replace asThenable with Promise.resolve

This commit is contained in:
Johannes Rieken
2018-10-01 12:11:57 +02:00
parent 75968799b4
commit 9496bb79c5
4 changed files with 6 additions and 17 deletions

View File

@@ -5,7 +5,6 @@
'use strict';
import { Event, Emitter } from 'vs/base/common/event';
import { toThenable } from 'vs/base/common/async';
import { TextEditorSelectionChangeKind } from './extHostTypes';
import * as TypeConverters from './extHostTypeConverters';
import { TextEditorDecorationType, ExtHostTextEditor } from './extHostTextEditor';
@@ -149,6 +148,6 @@ export class ExtHostEditors implements ExtHostEditorsShape {
}
getDiffInformation(id: string): Thenable<vscode.LineChange[]> {
return toThenable(this._proxy.$getDiffInformation(id));
return Promise.resolve(this._proxy.$getDiffInformation(id));
}
}