@@ -118,7 +118,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
118
118
//#region Eventing
119
119
120
120
private readonly _deliveryQueue = new EventDeliveryQueue ( ) ;
121
- protected readonly _contributions2 : CodeEditorContributions = this . _register ( new CodeEditorContributions ( ) ) ;
121
+ protected readonly _contributions : CodeEditorContributions = this . _register ( new CodeEditorContributions ( ) ) ;
122
122
123
123
private readonly _onDidDispose : Emitter < void > = this . _register ( new Emitter < void > ( ) ) ;
124
124
public readonly onDidDispose : Event < void > = this . _onDidDispose . event ;
@@ -153,7 +153,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
153
153
private readonly _onDidChangeCursorSelection : Emitter < ICursorSelectionChangedEvent > = this . _register ( new Emitter < ICursorSelectionChangedEvent > ( { deliveryQueue : this . _deliveryQueue } ) ) ;
154
154
public readonly onDidChangeCursorSelection : Event < ICursorSelectionChangedEvent > = this . _onDidChangeCursorSelection . event ;
155
155
156
- private readonly _onDidAttemptReadOnlyEdit : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions2 , this . _deliveryQueue ) ) ;
156
+ private readonly _onDidAttemptReadOnlyEdit : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions , this . _deliveryQueue ) ) ;
157
157
public readonly onDidAttemptReadOnlyEdit : Event < void > = this . _onDidAttemptReadOnlyEdit . event ;
158
158
159
159
private readonly _onDidLayoutChange : Emitter < EditorLayoutInfo > = this . _register ( new Emitter < EditorLayoutInfo > ( { deliveryQueue : this . _deliveryQueue } ) ) ;
@@ -167,55 +167,55 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
167
167
public readonly onDidFocusEditorWidget : Event < void > = this . _editorWidgetFocus . onDidChangeToTrue ;
168
168
public readonly onDidBlurEditorWidget : Event < void > = this . _editorWidgetFocus . onDidChangeToFalse ;
169
169
170
- private readonly _onWillType : Emitter < string > = this . _register ( new InteractionEmitter < string > ( this . _contributions2 , this . _deliveryQueue ) ) ;
170
+ private readonly _onWillType : Emitter < string > = this . _register ( new InteractionEmitter < string > ( this . _contributions , this . _deliveryQueue ) ) ;
171
171
public readonly onWillType = this . _onWillType . event ;
172
172
173
- private readonly _onDidType : Emitter < string > = this . _register ( new InteractionEmitter < string > ( this . _contributions2 , this . _deliveryQueue ) ) ;
173
+ private readonly _onDidType : Emitter < string > = this . _register ( new InteractionEmitter < string > ( this . _contributions , this . _deliveryQueue ) ) ;
174
174
public readonly onDidType = this . _onDidType . event ;
175
175
176
- private readonly _onDidCompositionStart : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions2 , this . _deliveryQueue ) ) ;
176
+ private readonly _onDidCompositionStart : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions , this . _deliveryQueue ) ) ;
177
177
public readonly onDidCompositionStart = this . _onDidCompositionStart . event ;
178
178
179
- private readonly _onDidCompositionEnd : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions2 , this . _deliveryQueue ) ) ;
179
+ private readonly _onDidCompositionEnd : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions , this . _deliveryQueue ) ) ;
180
180
public readonly onDidCompositionEnd = this . _onDidCompositionEnd . event ;
181
181
182
- private readonly _onDidPaste : Emitter < editorBrowser . IPasteEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPasteEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
182
+ private readonly _onDidPaste : Emitter < editorBrowser . IPasteEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPasteEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
183
183
public readonly onDidPaste = this . _onDidPaste . event ;
184
184
185
- private readonly _onMouseUp : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
185
+ private readonly _onMouseUp : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
186
186
public readonly onMouseUp : Event < editorBrowser . IEditorMouseEvent > = this . _onMouseUp . event ;
187
187
188
- private readonly _onMouseDown : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
188
+ private readonly _onMouseDown : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
189
189
public readonly onMouseDown : Event < editorBrowser . IEditorMouseEvent > = this . _onMouseDown . event ;
190
190
191
- private readonly _onMouseDrag : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
191
+ private readonly _onMouseDrag : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
192
192
public readonly onMouseDrag : Event < editorBrowser . IEditorMouseEvent > = this . _onMouseDrag . event ;
193
193
194
- private readonly _onMouseDrop : Emitter < editorBrowser . IPartialEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPartialEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
194
+ private readonly _onMouseDrop : Emitter < editorBrowser . IPartialEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPartialEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
195
195
public readonly onMouseDrop : Event < editorBrowser . IPartialEditorMouseEvent > = this . _onMouseDrop . event ;
196
196
197
- private readonly _onMouseDropCanceled : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions2 , this . _deliveryQueue ) ) ;
197
+ private readonly _onMouseDropCanceled : Emitter < void > = this . _register ( new InteractionEmitter < void > ( this . _contributions , this . _deliveryQueue ) ) ;
198
198
public readonly onMouseDropCanceled : Event < void > = this . _onMouseDropCanceled . event ;
199
199
200
- private readonly _onDropIntoEditor = this . _register ( new InteractionEmitter < { readonly position : IPosition ; readonly event : DragEvent } > ( this . _contributions2 , this . _deliveryQueue ) ) ;
200
+ private readonly _onDropIntoEditor = this . _register ( new InteractionEmitter < { readonly position : IPosition ; readonly event : DragEvent } > ( this . _contributions , this . _deliveryQueue ) ) ;
201
201
public readonly onDropIntoEditor = this . _onDropIntoEditor . event ;
202
202
203
- private readonly _onContextMenu : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
203
+ private readonly _onContextMenu : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
204
204
public readonly onContextMenu : Event < editorBrowser . IEditorMouseEvent > = this . _onContextMenu . event ;
205
205
206
- private readonly _onMouseMove : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
206
+ private readonly _onMouseMove : Emitter < editorBrowser . IEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
207
207
public readonly onMouseMove : Event < editorBrowser . IEditorMouseEvent > = this . _onMouseMove . event ;
208
208
209
- private readonly _onMouseLeave : Emitter < editorBrowser . IPartialEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPartialEditorMouseEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
209
+ private readonly _onMouseLeave : Emitter < editorBrowser . IPartialEditorMouseEvent > = this . _register ( new InteractionEmitter < editorBrowser . IPartialEditorMouseEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
210
210
public readonly onMouseLeave : Event < editorBrowser . IPartialEditorMouseEvent > = this . _onMouseLeave . event ;
211
211
212
- private readonly _onMouseWheel : Emitter < IMouseWheelEvent > = this . _register ( new InteractionEmitter < IMouseWheelEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
212
+ private readonly _onMouseWheel : Emitter < IMouseWheelEvent > = this . _register ( new InteractionEmitter < IMouseWheelEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
213
213
public readonly onMouseWheel : Event < IMouseWheelEvent > = this . _onMouseWheel . event ;
214
214
215
- private readonly _onKeyUp : Emitter < IKeyboardEvent > = this . _register ( new InteractionEmitter < IKeyboardEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
215
+ private readonly _onKeyUp : Emitter < IKeyboardEvent > = this . _register ( new InteractionEmitter < IKeyboardEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
216
216
public readonly onKeyUp : Event < IKeyboardEvent > = this . _onKeyUp . event ;
217
217
218
- private readonly _onKeyDown : Emitter < IKeyboardEvent > = this . _register ( new InteractionEmitter < IKeyboardEvent > ( this . _contributions2 , this . _deliveryQueue ) ) ;
218
+ private readonly _onKeyDown : Emitter < IKeyboardEvent > = this . _register ( new InteractionEmitter < IKeyboardEvent > ( this . _contributions , this . _deliveryQueue ) ) ;
219
219
public readonly onKeyDown : Event < IKeyboardEvent > = this . _onKeyDown . event ;
220
220
221
221
private readonly _onDidContentSizeChange : Emitter < editorCommon . IContentSizeChangedEvent > = this . _register ( new Emitter < editorCommon . IContentSizeChangedEvent > ( { deliveryQueue : this . _deliveryQueue } ) ) ;
@@ -332,7 +332,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
332
332
} else {
333
333
contributions = EditorExtensionsRegistry . getEditorContributions ( ) ;
334
334
}
335
- this . _contributions2 . initialize ( this , contributions , this . _instantiationService ) ;
335
+ this . _contributions . initialize ( this , contributions , this . _instantiationService ) ;
336
336
337
337
for ( const action of EditorExtensionsRegistry . getEditorActions ( ) ) {
338
338
if ( this . _actions . has ( action . id ) ) {
@@ -512,7 +512,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
512
512
this . _onDidChangeModel . fire ( e ) ;
513
513
this . _postDetachModelCleanup ( detachedModel ) ;
514
514
515
- this . _contributions2 . onAfterModelAttached ( ) ;
515
+ this . _contributions . onAfterModelAttached ( ) ;
516
516
}
517
517
518
518
private _removeDecorationTypes ( ) : void {
@@ -979,7 +979,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
979
979
if ( ! this . _modelData ) {
980
980
return null ;
981
981
}
982
- const contributionsState = this . _contributions2 . saveViewState ( ) ;
982
+ const contributionsState = this . _contributions . saveViewState ( ) ;
983
983
const cursorState = this . _modelData . viewModel . saveCursorState ( ) ;
984
984
const viewState = this . _modelData . viewModel . saveState ( ) ;
985
985
return {
@@ -1005,7 +1005,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
1005
1005
this . _modelData . viewModel . restoreCursorState ( [ < editorCommon . ICursorState > cursorState ] ) ;
1006
1006
}
1007
1007
1008
- this . _contributions2 . restoreViewState ( codeEditorState . contributionsState || { } ) ;
1008
+ this . _contributions . restoreViewState ( codeEditorState . contributionsState || { } ) ;
1009
1009
const reducedState = this . _modelData . viewModel . reduceRestoreState ( codeEditorState . viewState ) ;
1010
1010
this . _modelData . view . restoreState ( reducedState ) ;
1011
1011
}
@@ -1021,7 +1021,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
1021
1021
}
1022
1022
1023
1023
public getContribution < T extends editorCommon . IEditorContribution > ( id : string ) : T | null {
1024
- return this . _contributions2 . get ( id ) as T | null ;
1024
+ return this . _contributions . get ( id ) as T | null ;
1025
1025
}
1026
1026
1027
1027
public getActions ( ) : editorCommon . IEditorAction [ ] {
0 commit comments