@@ -115,7 +115,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
115115
116116 // --- from extension host process
117117
118- $tryShowTextDocument ( resource : UriComponents , options : ITextDocumentShowOptions ) : TPromise < string > {
118+ $tryShowTextDocument ( resource : UriComponents , options : ITextDocumentShowOptions ) : Thenable < string > {
119119 const uri = URI . revive ( resource ) ;
120120
121121 const editorOptions : ITextEditorOptions = {
@@ -137,7 +137,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
137137 } ) ;
138138 }
139139
140- $tryShowEditor ( id : string , position ?: EditorViewColumn ) : TPromise < void > {
140+ $tryShowEditor ( id : string , position ?: EditorViewColumn ) : Thenable < void > {
141141 let mainThreadEditor = this . _documentsAndEditors . getEditor ( id ) ;
142142 if ( mainThreadEditor ) {
143143 let model = mainThreadEditor . getModel ( ) ;
@@ -149,7 +149,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
149149 return undefined ;
150150 }
151151
152- $tryHideEditor ( id : string ) : TPromise < void > {
152+ $tryHideEditor ( id : string ) : Thenable < void > {
153153 let mainThreadEditor = this . _documentsAndEditors . getEditor ( id ) ;
154154 if ( mainThreadEditor ) {
155155 let editors = this . _editorService . visibleControls ;
@@ -162,15 +162,15 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
162162 return undefined ;
163163 }
164164
165- $trySetSelections ( id : string , selections : ISelection [ ] ) : TPromise < void > {
165+ $trySetSelections ( id : string , selections : ISelection [ ] ) : Thenable < void > {
166166 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
167167 return TPromise . wrapError ( disposed ( `TextEditor(${ id } )` ) ) ;
168168 }
169169 this . _documentsAndEditors . getEditor ( id ) . setSelections ( selections ) ;
170170 return TPromise . as ( null ) ;
171171 }
172172
173- $trySetDecorations ( id : string , key : string , ranges : IDecorationOptions [ ] ) : TPromise < void > {
173+ $trySetDecorations ( id : string , key : string , ranges : IDecorationOptions [ ] ) : Thenable < void > {
174174 key = `${ this . _instanceId } -${ key } ` ;
175175 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
176176 return TPromise . wrapError ( disposed ( `TextEditor(${ id } )` ) ) ;
@@ -179,7 +179,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
179179 return TPromise . as ( null ) ;
180180 }
181181
182- $trySetDecorationsFast ( id : string , key : string , ranges : number [ ] ) : TPromise < void > {
182+ $trySetDecorationsFast ( id : string , key : string , ranges : number [ ] ) : Thenable < void > {
183183 key = `${ this . _instanceId } -${ key } ` ;
184184 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
185185 return TPromise . wrapError ( disposed ( `TextEditor(${ id } )` ) ) ;
@@ -188,35 +188,35 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
188188 return TPromise . as ( null ) ;
189189 }
190190
191- $tryRevealRange ( id : string , range : IRange , revealType : TextEditorRevealType ) : TPromise < void > {
191+ $tryRevealRange ( id : string , range : IRange , revealType : TextEditorRevealType ) : Thenable < void > {
192192 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
193193 return TPromise . wrapError ( disposed ( `TextEditor(${ id } )` ) ) ;
194194 }
195195 this . _documentsAndEditors . getEditor ( id ) . revealRange ( range , revealType ) ;
196196 return undefined ;
197197 }
198198
199- $trySetOptions ( id : string , options : ITextEditorConfigurationUpdate ) : TPromise < void > {
199+ $trySetOptions ( id : string , options : ITextEditorConfigurationUpdate ) : Thenable < void > {
200200 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
201201 return TPromise . wrapError ( disposed ( `TextEditor(${ id } )` ) ) ;
202202 }
203203 this . _documentsAndEditors . getEditor ( id ) . setConfiguration ( options ) ;
204204 return TPromise . as ( null ) ;
205205 }
206206
207- $tryApplyEdits ( id : string , modelVersionId : number , edits : ISingleEditOperation [ ] , opts : IApplyEditsOptions ) : TPromise < boolean > {
207+ $tryApplyEdits ( id : string , modelVersionId : number , edits : ISingleEditOperation [ ] , opts : IApplyEditsOptions ) : Thenable < boolean > {
208208 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
209209 return TPromise . wrapError < boolean > ( disposed ( `TextEditor(${ id } )` ) ) ;
210210 }
211211 return TPromise . as ( this . _documentsAndEditors . getEditor ( id ) . applyEdits ( modelVersionId , edits , opts ) ) ;
212212 }
213213
214- $tryApplyWorkspaceEdit ( dto : WorkspaceEditDto ) : TPromise < boolean > {
214+ $tryApplyWorkspaceEdit ( dto : WorkspaceEditDto ) : Thenable < boolean > {
215215 const { edits } = reviveWorkspaceEditDto ( dto ) ;
216216 return this . _bulkEditService . apply ( { edits } , undefined ) . then ( ( ) => true , err => false ) ;
217217 }
218218
219- $tryInsertSnippet ( id : string , template : string , ranges : IRange [ ] , opts : IUndoStopOptions ) : TPromise < boolean > {
219+ $tryInsertSnippet ( id : string , template : string , ranges : IRange [ ] , opts : IUndoStopOptions ) : Thenable < boolean > {
220220 if ( ! this . _documentsAndEditors . getEditor ( id ) ) {
221221 return TPromise . wrapError < boolean > ( disposed ( `TextEditor(${ id } )` ) ) ;
222222 }
@@ -235,7 +235,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
235235 this . _codeEditorService . removeDecorationType ( key ) ;
236236 }
237237
238- $getDiffInformation ( id : string ) : TPromise < ILineChange [ ] > {
238+ $getDiffInformation ( id : string ) : Thenable < ILineChange [ ] > {
239239 const editor = this . _documentsAndEditors . getEditor ( id ) ;
240240
241241 if ( ! editor ) {
0 commit comments