File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ function addCommands() {
3535}
3636
3737function addObservers ( ) {
38- subscriptions . add ( atom . workspace . observeActiveTextEditor ( editorChanged ) )
38+ // if the active text editor changed (switched to another editor), then call editorChanged function
39+ subscriptions . add ( atom . workspace . onDidChangeActiveTextEditor ( editorChanged ) )
3940}
4041
4142export function deactivate ( ) {
@@ -164,11 +165,8 @@ export async function getOutline(editor = atom.workspace.getActiveTextEditor())
164165 return setStatus ( "noProvider" )
165166 }
166167
167- // const target = editor.getPath()
168-
169- // const busySignalID = `Outline: ${target}`
170- // // @ts -ignore
171- // busySignalProvider?.add(busySignalID, { onlyForFile: target })
168+ // const busySignalID = `Outline: ${editor.getPath()}`
169+ // busySignalProvider?.add(busySignalID)
172170
173171 const outline = await provider . getOutline ( editor )
174172 view . setOutline ( outline ?. outlineTrees ?? [ ] , editor , Boolean ( editorLargeness ( editor as TextEditor ) ) )
You can’t perform that action at this time.
0 commit comments