diff --git a/src/vs/workbench/services/textfile/common/textFileEditorModel.ts b/src/vs/workbench/services/textfile/common/textFileEditorModel.ts index a86aff17af483f3442341bde82cd77117481bc33..ddd51c5163aa158e0f7a54c100d628df6fa1817b 100644 --- a/src/vs/workbench/services/textfile/common/textFileEditorModel.ts +++ b/src/vs/workbench/services/textfile/common/textFileEditorModel.ts @@ -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 = Promise.resolve(versionId); if (TextFileEditorModel.saveParticipant && !options.skipSaveParticipants) { const onCompleteOrError = () => { this.blockModelContentChange = false;