mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 22:37:41 +00:00
Tabs don't update column counter (fixes #103)
This commit is contained in:
parent
6e3703638e
commit
c00ea5bf41
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue