提交 77e4eb5b 编写于 作者: B Benjamin Pasero

fix one more TPromise usage

上级 f9a2b652
......@@ -651,7 +651,7 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
// we do not want to trigger another auto save or similar, so we block this
// In addition we update our version right after in case it changed because of a model change
// Save participants can also be skipped through API.
let saveParticipantPromise = TPromise.as(versionId);
let saveParticipantPromise: Thenable<number> = Promise.resolve(versionId);
if (TextFileEditorModel.saveParticipant && !options.skipSaveParticipants) {
const onCompleteOrError = () => {
this.blockModelContentChange = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册