Hello everyone. I’m trying to write small package which will modify a textEditor every time file gets opened. So as I understood separate TextEditor created for each tab in editor and I need to observe creation of new text editors and apply my function with it. https://atom.io/docs/api/v1.0.0/Workspace#instance-observeTextEditors recommends me to use “observeTextEditors” event but it does not applies at all. Here is my package code:
activate: (state) -> atom.workspace.observeTextEditors (event) => console.log 'called'
When I open any file console log is empty. What I’m doing wrong?