Tabs don't update column counter (fixes #103)

This commit is contained in:
Benjamin Pasero 2015-11-23 10:38:40 +01:00
parent 6e3703638e
commit c00ea5bf41

View file

@ -136,12 +136,10 @@ export abstract class BaseTextEditor extends BaseEditor {
this._editorContainer = parent;
this.editorControl = this.createEditorControl(parent);
// Hook Listener for Selection changes (and only react to api, mouse or keyboard source, not any internal source of the editor)
// Hook Listener for Selection changes
this.toUnbind.push(this.editorControl.addListener(EventType.CursorPositionChanged, (event: ICursorPositionChangedEvent) => {
if (event.source === 'api' || event.source === 'mouse' || event.source === 'keyboard') {
let selection = this.editorControl.getSelection();
this.eventService.emit(WorkbenchEventType.TEXT_EDITOR_SELECTION_CHANGED, new TextEditorSelectionEvent(selection, this, this.getId(), this.input, null, this.position, event));
}
let selection = this.editorControl.getSelection();
this.eventService.emit(WorkbenchEventType.TEXT_EDITOR_SELECTION_CHANGED, new TextEditorSelectionEvent(selection, this, this.getId(), this.input, null, this.position, event));
}));
// Hook Listener for mode changes