You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
When the package is disabled, the event subscription to ActivePaneItem is not unsubscribed.
// Hook into the events to recognize the user opening new editors or changing the paneconstactivate=()=>{generateConfig();showState();fixFile();atom.workspace.observeTextEditors(observeTextEditor);/* This subscription */atom.workspace.observeActivePaneItem(observeActivePaneItem);reapplyEditorconfig();};// Clean the status-icon up, remove all embedded editorconfig-objectsconstdeactivate=()=>{consttextEditors=atom.workspace.getTextEditors();textEditors.forEach(editor=>{editor.getBuffer().editorconfig.disposables.dispose();});statusTile.removeIcon();};
Maybe the solution is to use a variable to receive the result of observeActivePaneItem and call dispose() to unsubscribe when package is disabled.
The text was updated successfully, but these errors were encountered:
When the package is disabled, the event subscription to ActivePaneItem is not unsubscribed.
Maybe the solution is to use a variable to receive the result of observeActivePaneItem and call dispose() to unsubscribe when package is disabled.
The text was updated successfully, but these errors were encountered: