@@ -40,7 +40,7 @@ class TrimWhitespaceParticipant implements INamedSaveParticpant {
4040 // Nothing
4141 }
4242
43- public participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : any {
43+ public participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : void {
4444 if ( this . configurationService . lookup ( 'files.trimTrailingWhitespace' , model . textEditorModel . getLanguageIdentifier ( ) . language ) . value ) {
4545 this . doTrimTrailingWhitespace ( model . textEditorModel , env . reason === SaveReason . AUTO ) ;
4646 }
@@ -98,7 +98,7 @@ export class FinalNewLineParticipant implements INamedSaveParticpant {
9898 // Nothing
9999 }
100100
101- public participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : any {
101+ public participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : void {
102102 if ( this . configurationService . lookup ( 'files.insertFinalNewline' , model . textEditorModel . getLanguageIdentifier ( ) . language ) . value ) {
103103 this . doInsertFinalNewLine ( model . textEditorModel ) ;
104104 }
@@ -138,7 +138,7 @@ class FormatOnSaveParticipant implements INamedSaveParticpant {
138138 // Nothing
139139 }
140140
141- participate ( editorModel : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < any > {
141+ participate ( editorModel : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < void > {
142142
143143 const model = editorModel . textEditorModel ;
144144 if ( env . reason === SaveReason . AUTO
@@ -204,7 +204,7 @@ class ExtHostSaveParticipant implements INamedSaveParticpant {
204204 this . _proxy = threadService . get ( ExtHostContext . ExtHostDocumentSaveParticipant ) ;
205205 }
206206
207- participate ( editorModel : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < any > {
207+ participate ( editorModel : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < void > {
208208 return new TPromise < any > ( ( resolve , reject ) => {
209209 setTimeout ( reject , 1750 ) ;
210210 this . _proxy . $participateInSave ( editorModel . getResource ( ) , env . reason ) . then ( values => {
@@ -240,7 +240,7 @@ export class SaveParticipant implements ISaveParticipant {
240240 // Hook into model
241241 TextFileEditorModel . setSaveParticipant ( this ) ;
242242 }
243- participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < any > {
243+ participate ( model : ITextFileEditorModel , env : { reason : SaveReason } ) : TPromise < void > {
244244
245245 const stats : { [ name : string ] : number } = Object . create ( null ) ;
246246
0 commit comments